Altor Posted March 30, 2016 Share Posted March 30, 2016 Hi all: I have a little problem running a cmd console programs. For example if I run: RunWait (@ComSpec & "myprogram.exe -h") The operator -h display myprogram help menu. The script run but the console screen with the help menu does not appear, only it makes a small flicker but never gets to appear. I tried it adding the macro @SW_LOCK without results. Do you have any solution for solve it Thank's to all Link to comment Share on other sites More sharing options...
Developers Jos Posted March 30, 2016 Developers Share Posted March 30, 2016 (edited) Think the shown RunWait() is wrong as you are missing a space between the comspec and the program ...right? You also need /c in there so does this work?: RunWait (@ComSpec & " /c myprogram.exe -h") or when you want the cmd window to stay open: RunWait (@ComSpec & " /k myprogram.exe -h") Jos Edited March 30, 2016 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Altor Posted March 30, 2016 Author Share Posted March 30, 2016 (edited) Ok Jos, problem solved whith: RunWait (@ComSpec & " /k myprogram.exe -h") Now the console appear. Thank's Edited March 30, 2016 by Altor 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