Sign in to follow this  
Followers 0
_Chris_

Run Command then stop pausing script

11 posts in this topic

When i run a dos command (it runs an exe but with parameters) my script pauses until the program executed by the command is closed. HELP!!! I need it to run the command and then carry on. It runs a program that sits in the system tray. I also need a way of closing this without using processclose if possible as i think it runs multiple proceses

Thanks

Share this post


Link to post
Share on other sites



When i run a dos command (it runs an exe but with parameters) my script pauses until the program executed by the command is closed. HELP!!! I need it to run the command and then carry on. It runs a program that sits in the system tray. I also need a way of closing this without using processclose if possible as i think it runs multiple proceses

Thanks

You using Run or RunWait? sounds like your using RunWait, try Run


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Im using neither, im using _RunDos. Can you use RUN to run an exe WITH perameters???

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Im using neither, im using _RunDos. Can you use RUN to run an exe WITH perameters???

yes

btw: _RunDos uses the RunWait command

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

yeah i guessed that because batch files do the same.

How do i go about using the run command with perameters?

Share this post


Link to post
Share on other sites

yeah i guessed that because batch files do the same.

How do i go about using the run command with perameters?

just use the same command you used with _RunDos only use Run.

Look up Run in the Help, it's under Process Management


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

here's the _RunDos

RunWait(@ComSpec & " /C " & $sCommand, "", @SW_HIDE)
oÝ÷ Û*.ë-ç¶h¶¬jg¨ºÚ"µÍ[ÛÛTÜXÈ  [È ][ÝÈÐÈ  ][ÝÈ  [È ÌÍÜÐÛÛ[X[ ][ÝÉ][ÝËÕ×ÒQJB
Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Man thats wicked. I cant believe i didnt think to try that!

Any ideas on how to close a program running it the system tray?

Share this post


Link to post
Share on other sites

Man thats wicked. I cant believe i didnt think to try that!

Any ideas on how to close a program running it the system tray?

I know this one's been covered before, i believe it depends on what your wanting to close.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

its a remote support program, the bottom option is close and it has two are u sure warnings if that helps, i have looked around the forum but i dont find the search works very well.

Share this post


Link to post
Share on other sites

its a remote support program, the bottom option is close and it has two are u sure warnings if that helps, i have looked around the forum but i dont find the search works very well.

Might look at http://www.autoitscript.com/forum/index.ph...=13704&st=0


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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  
Followers 0