MyFlight
Technical User
- Feb 4, 2002
- 193
I am trying to figure out how to run WZZIP.exe (the command line interface for WinZip. I have an Aspect Script that downloads Many files and need to zip them together. . All files begin with a 7 digit number followed by an Underscore and then the text file name. I need to zip any file in "C:\Temp Data Files\Raw Data\" with 1234567_*.txt into a zip file named 1234567.zip. The Seven Digit number changes with each Account
Here is what I have have so far however it is not working.
Proc main
string Prog = "C:\Temp Data Files\Raw Data\WZZIP "
string aSuf = "*.txt"
string zSuf = ".zip c:\Temp Data Files\Raw Data\"
string sAcctNum
string startQuote = "`""
string stopQuote = "`""
sdlginput "Account" "Enter account Number:" sAcctNum
usermsg sAcctNum
; setup WZZIP Program Command String
strcat startQuote Prog
strcat startQuote sAcctNum
strcat startQuote zSuf
strcat startQuote sAcctNum
strcat startQuote aSuf
strcat startQuote stopQuote
run startQuote
endproc
If anyone has any suggestions or could point me in the right direction I would appreciate it.
Here is what I have have so far however it is not working.
Proc main
string Prog = "C:\Temp Data Files\Raw Data\WZZIP "
string aSuf = "*.txt"
string zSuf = ".zip c:\Temp Data Files\Raw Data\"
string sAcctNum
string startQuote = "`""
string stopQuote = "`""
sdlginput "Account" "Enter account Number:" sAcctNum
usermsg sAcctNum
; setup WZZIP Program Command String
strcat startQuote Prog
strcat startQuote sAcctNum
strcat startQuote zSuf
strcat startQuote sAcctNum
strcat startQuote aSuf
strcat startQuote stopQuote
run startQuote
endproc
If anyone has any suggestions or could point me in the right direction I would appreciate it.