Sign in to follow this  
Followers 0
dot45

stupid issue with a runwait

2 posts in this topic

$7za = "c:\HP_UPD_PS\7za.exe e c:\HP_UPD_PS.zip HP_UPD_PS\ -y"

MsgBox (0, "Installing Printers", "The Printers are now being installed to this pc, this process will take about 2 minutes.",10)  ;Just a message box
DirCreate ("c:\HP_UPD_PS")  ;Create empty directory to hold print drivers when unzipped
FileInstall("C:\Pmig\printer\printmig.exe","c:\",1)   ;Extracting from executable print migrator to root of C:\
FileInstall("C:\Pmig\printer\5C_WYSE_PS.cab","c:\",1)  ;Extracting from executable printer cab settings to root of C:\
FileInstall("C:\Pmig\printer\HP_UPD_PS.zip","c:\",1)   ;Extracting from executable HP Universal Print Driver Post Script (No version) to root of C:\
FileInstall("C:\Pmig\printer\7za.exe","c:\HP_UPD_PS\",1)  ;Extracting from executable 7 zip executable to unzip print driver

RunWait($7za,"",@SW_LOCK)

I am trying to get this part of my script to extract a zip to a folder that i have already created. The script appears to run (been running it as a CUI compiled script), it looks like it extracts but the files dont get extracted to the folder.

The command runs fine if executed manually, both from a run box and a command prompt.

Any ideas?

Share this post


Link to post
Share on other sites



Have you tried something like this?

$7za = "c:\HP_UPD_PS\7za.exe e c:\HP_UPD_PS.zip HP_UPD_PS\ -y"
RunWait(@ComSpec & " /k " & $7za)

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0