I hope I am posting this to the correct group. If not, please let me know.
I inherited a VBS program that executes WinZip to compress files. Based on
what has been done in the past, this was run manually each time by simply
clicking on the file. I have run it successfully many times since I took
over the task.
I am attempting to automate this by adding this to Scheduled Tasks. Now,
the program fails. As near as I can tell, the failure occurs at the point
that the WinZip command is to be executed. The line I believe is failing is:
WshShell.Run ZipCommand, 1, True
The ZipCommand contains the actual WinZip command to be executed such as:
c:\winzip100\wzzip "d:\tstar\ADM CY2006.zip" @"d:\tstar\ZIPLIST_ADM.txt"
I have two questions:
1) Can someone offer some insight as to why this would fail when executed
from Scheduled Tasks, but work fine manually? Or is there a better approach
to get this done?
2) I have been searching for information on the last two parameters of the
Run command ("1" and "True") but cannot find anything. Can someone tell me
what they are used for and the valid entries for each?
I have limited experience with scripts so please be patient.
Thanks.