Jump to content

Problem wiht RunWait... not appear out console


 Share

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

Link to comment
Share on other sites

  • Developers

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...