Lumumba wrote:Have you ever thought about to compress your file(s) with pkzip/winzip from the commandline ?
It's more reliable (no mouse & click & window open and performance or not ...)
good idea! Although I'm having trouble downloading the command-line addon, so I'll leave it be for now.
Yes, I try and stay away from mouse-clicking. very unreliable. I try and stick to window names, ALT shortcuts etc...
I changed my mind with the above problem too. Rather than using right-click to create the zip file, I now open winzip and create new archive. Much simpler code for my sript and more reliable. But I will go with your advice once I can get it downloaded.
This brings me to my next problem. After creating the zip file I need to CopyFile> with a variable for the filename, taken as user input earlier in the script; then delete the old zip. I tried to put some error checking in so that it would loop if the delete check failed. My problem is that it always fails. Even when I have verified that the original was deleted, the try-again prompt always displays.
Label>del_zip
DeleteFile>C:\Folder\File.zip
IfFileExists>C:\Folder\File.zip,retry,end
Label>retry
Ask>File.zip was not deleted. Do you want to try again? Press 'No' end the script,result
If>result=YES,del_zip,end
Label>end