_Chris_ Posted September 6, 2006 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
GaryFrost Posted September 6, 2006 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.
_Chris_ Posted September 6, 2006 Author Posted September 6, 2006 Im using neither, im using _RunDos. Can you use RUN to run an exe WITH perameters???
GaryFrost Posted September 6, 2006 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.
_Chris_ Posted September 6, 2006 Author 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?
GaryFrost Posted September 6, 2006 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.
GaryFrost Posted September 6, 2006 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.
_Chris_ Posted September 6, 2006 Author 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?
GaryFrost Posted September 6, 2006 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.
_Chris_ Posted September 6, 2006 Author 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.
GaryFrost Posted September 6, 2006 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.
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