Jump to content

Run or Runwait and quotes

Recommended Posts

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 :ph34r:

Link to post
Share on other sites

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")


Dim $var = '"C:\Program Files\SmartPSS\Smart_Update\ST6UNST.LOG"'
     RunWait("C:\Windows\ST6UNST.exe -n " & $var & " /silent")


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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...