fraudh8er Posted September 26, 2004 Posted September 26, 2004 Iam having trouble with the follwing line of code: I need to run this to install a program, it works in DOS, why cant I get it to work with the RUN or RUNWait command. I am not sure, any help will greatly appreciated. Dim $var = "C:\Program Files\SmartPSS\Smart_Update\ST6UNST.LOG" RunWait(@ComSpec & " /c " & "C:\Windows\ST6UNST.exe -n $var /silent") I have also tried with no avail, but the following is exactly what i used in DOs to get it to work. Run("C:\Windows\ST6UNST.exe -n "C:\Program Files\SmartPSS\Smart_Update\ST6UNST.LOG" /silent") Thanks
fraudh8er Posted September 26, 2004 Author Posted September 26, 2004 I got it not sure how but thanks. since it works I will not mess with it unless i have to. Dim $var = '"C:\Program Files\SmartPSS\Smart_Update\ST6UNST.LOG"' RunWait(@ComSpec & " /c C:\Windows\ST6UNST.exe -n " & $var & " /silent") or Dim $var = '"C:\Program Files\SmartPSS\Smart_Update\ST6UNST.LOG"' RunWait("C:\Windows\ST6UNST.exe -n " & $var & " /silent") <{POST_SNAPBACK}>
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now