dcop Posted May 13, 2007 Share Posted May 13, 2007 $readline = C:\Dennis\Internet\pine\freepdf.msi /qp RunWait('"' & @ComSpec & '" /c "' & $readline & '"', @SW_HIDE) Problem is that C:\Dennis\Internet\pine\freepdf.msi /qp is not found but it works without the /qp switch. Also if open a cmd window manually and put :\Dennis\Internet\pine\freepdf.msi /qp on it it works. TIA for any help. Dennis Link to comment Share on other sites More sharing options...
Rick Posted May 13, 2007 Share Posted May 13, 2007 (edited) $readline = "C:\Dennis\Internet\pine\freepdf.msi /qp" RunWait(@ComSpec & ' /c "' & $readline & '"',"", @SW_HIDE) Edited May 13, 2007 by Rick Who needs puzzles when we have AutoIt!! Link to comment Share on other sites More sharing options...
dcop Posted May 13, 2007 Author Share Posted May 13, 2007 $readline = "C:\Dennis\Internet\pine\freepdf.msi /qp"RunWait(@ComSpec & ' /c "' & $readline & '"',"", @SW_HIDE)Hmmmm...closer but now I get ..$running = RunWait(@ComSpec & ' /c "' & $readline & '"', @SW_HIDE) The directory name is invalid. Link to comment Share on other sites More sharing options...
dcop Posted May 13, 2007 Author Share Posted May 13, 2007 Hmmmm...closer but now I get ..$running = RunWait(@ComSpec & ' /c "' & $readline & '"', @SW_HIDE) The directory name is invalid.think I found it..._RunDos("start " & $readline)so far ok.. Link to comment Share on other sites More sharing options...
Rick Posted May 13, 2007 Share Posted May 13, 2007 how about .. $readline = "C:\Dennis\Internet\pine\freepdf.msi /qp" RunWait(@ComSpec & ' /c "' & $readline & '"',"C:\Dennis\Internet\pine", @SW_HIDE) Who needs puzzles when we have AutoIt!! Link to comment Share on other sites More sharing options...
dcop Posted May 13, 2007 Author Share Posted May 13, 2007 how about ..$readline = "C:\Dennis\Internet\pine\freepdf.msi /qp"RunWait(@ComSpec & ' /c "' & $readline & '"',"C:\Dennis\Internet\pine", @SW_HIDE)Yes, that works!!! Thanx Rick!! Link to comment Share on other sites More sharing options...
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