Jump to content

Problem wiht RunWait... not appear out console

Recommended Posts


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

Share this post

Link to post
Share on other sites

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")


Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
Live for the present,
Dream of the future,
Learn from the past.

Share this post

Link to post
Share on other sites

Ok Jos, problem solved whith:

RunWait (@ComSpec & " /k myprogram.exe -h")

Now the console appear.


Edited by Altor

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


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.