Altor

Problem wiht RunWait... not appear out console

3 posts in this topic

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



#2 ·  Posted (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 by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Ok Jos, problem solved whith:

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

Now the console appear.

Thank's

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