_Chris_ Posted September 6, 2006 Share Posted September 6, 2006 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 More sharing options...
GaryFrost Posted September 6, 2006 Share Posted September 6, 2006 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 procesesThanksYou 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 More sharing options...
_Chris_ Posted September 6, 2006 Author Share Posted September 6, 2006 Im using neither, im using _RunDos. Can you use RUN to run an exe WITH perameters??? Link to comment Share on other sites More sharing options...
GaryFrost Posted September 6, 2006 Share Posted September 6, 2006 (edited) Im using neither, im using _RunDos. Can you use RUN to run an exe WITH perameters???yesbtw: _RunDos uses the RunWait command Edited September 6, 2006 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 More sharing options...
_Chris_ Posted September 6, 2006 Author Share Posted September 6, 2006 yeah i guessed that because batch files do the same. How do i go about using the run command with perameters? Link to comment Share on other sites More sharing options...
GaryFrost Posted September 6, 2006 Share Posted September 6, 2006 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 More sharing options...
GaryFrost Posted September 6, 2006 Share Posted September 6, 2006 (edited) here's the _RunDos RunWait(@ComSpec & " /C " & $sCommand, "", @SW_HIDE) oÝ÷ Û*.ë-ç¶h¶¬jg¨ºÚ"µÍ[ÛÛTÜXÈ [È ][ÝÈÐÈ ][ÝÈ [È ÌÍÜÐÛÛ[X[ ][ÝÉ][ÝËÕ×ÒQJB Edited September 6, 2006 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 More sharing options...
_Chris_ Posted September 6, 2006 Author Share Posted September 6, 2006 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? Link to comment Share on other sites More sharing options...
GaryFrost Posted September 6, 2006 Share Posted September 6, 2006 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 More sharing options...
_Chris_ Posted September 6, 2006 Author Share Posted September 6, 2006 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. Link to comment Share on other sites More sharing options...
GaryFrost Posted September 6, 2006 Share Posted September 6, 2006 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 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