Jump to content

Run Command then stop pausing script


_Chris_
 Share

Recommended Posts

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

Link to comment
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.

 

Link to comment
Share on other sites

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.

 

Link to comment
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.

 

Link to comment
Share on other sites

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.

 

Link to comment
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.

 

Link to comment
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.

 

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