Mark Walden
asked on
Script to use Winzip to Package Daily Log Files
I'm current running a VB script to archive and clear the Event Log on each of my servers. I must use Winzip because of licensing. I would like to use VB so i can tack it on to the end of my current archive script, rather than running a second .bat of .cmd file.
Event logs are saved to a specific folder as:
ServerName_App_Date.evt
ServerName_Sec_Date.evt
ServerName_Sys_Date.evt
etc...
What could i add to the end of the script to Package these file into a single Zip file as ServerName_Date.zip
Event logs are saved to a specific folder as:
ServerName_App_Date.evt
ServerName_Sec_Date.evt
ServerName_Sys_Date.evt
etc...
What could i add to the end of the script to Package these file into a single Zip file as ServerName_Date.zip
ASKER
It requires version 12. We use version 9.
ASKER
OK 3_S, now what. I can zip the files and give it a name (MyZip.zip). However, this will be a daily task so i need the file name to be ServerName_Date.zip. Any ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I'll test it this afternoon and let you know.
ASKER
I have still not made this work yet. I have been placed on a new project so i have move this to the bottom of the list for now.
Then you can make a zip file using the command line using a shell in VB