I'm trying to zip a folder but i hit an error when i run the script.
when i run the below command via command line, i'm able to zip the folder without error.
"C:\Program Files\WinZip\WINZIP32.EXE" -min -a "C:\SST1\ihb889.zip" "C:\SST1\ihb889\*.*"
However, when i include the command in my script and run it... I encounter an error...
def var nvzip as char format "x(100)".
nvzip = "~"" + "C:\Program Files\WinZip\WINZIP32.EXE" + "~"" + " -min -a " +
"~"" + "C:\SST1\ihb889" + ".zip" + "~" " +
"~"" + "C:\SST1\ihb889" + "\*.*" + "~"".
os-command value (nvzip).
Error...
'C:\Program' is not recognized as an internal or external command, operation program or batch file.
Did i miss something here? Tried to troubleshoot but with no luck. Can anyone help?
when i run the below command via command line, i'm able to zip the folder without error.
"C:\Program Files\WinZip\WINZIP32.EXE" -min -a "C:\SST1\ihb889.zip" "C:\SST1\ihb889\*.*"
However, when i include the command in my script and run it... I encounter an error...
def var nvzip as char format "x(100)".
nvzip = "~"" + "C:\Program Files\WinZip\WINZIP32.EXE" + "~"" + " -min -a " +
"~"" + "C:\SST1\ihb889" + ".zip" + "~" " +
"~"" + "C:\SST1\ihb889" + "\*.*" + "~"".
os-command value (nvzip).
Error...
'C:\Program' is not recognized as an internal or external command, operation program or batch file.
Did i miss something here? Tried to troubleshoot but with no luck. Can anyone help?
Last edited: