View Full Version : Request In Progress: Zip Utility
rwmech
2006-10-19, 01:38 PM
I'm about 80% there with a zip utility to automatically zip up the GBPVR Logs and place them into a directory.
rwmech
2006-10-19, 02:36 PM
Ok, i have the first version of the ZIP utility done.
Move the LogZIP.dll to your PLUGINS directory.
Please note, you'll need to install the j# redistributable 2.0 on your system if you dont already have it.
http://www.microsoft.com/downloads/details.aspx?FamilyID=f72c74b3-ed0e-4af8-ae63-2f0e42501be1&DisplayLang=en
is the download link.
Let me know how this works for you. The first version ONLY copies to the C:\temp directory. I'll add support for different directories shortly.
Fatman_do
2006-10-19, 03:13 PM
Here is what I get.
10/19/2006 11:07:15 AM.937 VERBOSE [1] Starting Thread
10/19/2006 11:07:15 AM.937 VERBOSE [6] Zipping Log Files To: C:\temp\10-19-2006_11-07-15_AM_GBPVRLOGS.ZIP
10/19/2006 11:07:16 AM.234 VERBOSE [6] Looking in:C:\Program Files\devnz\gbpvr\GBPVR.exe
10/19/2006 11:07:16 AM.234 VERBOSE [6] Zipping Failed: System.IO.IOException: The directory name is invalid.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalGetFileDirectoryNames( String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
at System.IO.DirectoryInfo.GetFiles(String searchPattern, SearchOption searchOption)
at System.IO.DirectoryInfo.GetFiles()
at LogZIP.ZipLogs.DoWork()
Ted the Penguin
2006-10-19, 03:24 PM
ahh the irony, an error log from a utility made to collect error logs
I have not meaningful contribution, just thought that was funny
rwmech
2006-10-19, 03:56 PM
Here is what I get.
10/19/2006 11:07:15 AM.937 VERBOSE [1] Starting Thread
10/19/2006 11:07:15 AM.937 VERBOSE [6] Zipping Log Files To: C:\temp\10-19-2006_11-07-15_AM_GBPVRLOGS.ZIP
10/19/2006 11:07:16 AM.234 VERBOSE [6] Looking in:C:\Program Files\devnz\gbpvr\GBPVR.exe
10/19/2006 11:07:16 AM.234 VERBOSE [6] Zipping Failed: System.IO.IOException: The directory name is invalid.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalGetFileDirectoryNames( String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
at System.IO.DirectoryInfo.GetFiles(String searchPattern, SearchOption searchOption)
at System.IO.DirectoryInfo.GetFiles()
at LogZIP.ZipLogs.DoWork()
Yup, slight bug there. Try this version
rwmech
2006-10-19, 03:56 PM
ahh the irony, an error log from a utility made to collect error logs
I have not meaningful contribution, just thought that was funny
That is pretty hilarious actually.
Fatman_do
2006-10-19, 04:48 PM
That did the trick.
Powered by vBulletin™ Version 4.0.2 Copyright © 2010 vBulletin Solutions, Inc. All rights reserved.