Jump to content

Runwait Question


Recommended Posts

$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

$readline = "C:\Dennis\Internet\pine\freepdf.msi /qp"

RunWait(@ComSpec & ' /c "' & $readline & '"',"", @SW_HIDE)

Edited by Rick

Who needs puzzles when we have AutoIt!!

Link to comment
Share on other sites

$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

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

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...