Jump to content
Sign in to follow this  
dcop

Runwait Question

Recommended Posts

dcop

$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

Share this post


Link to post
Share on other sites
Rick

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

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

Edited by Rick

Who needs puzzles when we have AutoIt!!

Share this post


Link to post
Share on other sites
dcop

$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.

Share this post


Link to post
Share on other sites
dcop

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..

Share this post


Link to post
Share on other sites
Rick

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!!

Share this post


Link to post
Share on other sites
dcop

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!!

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  

×