Jump to content
Sign in to follow this  
Guest 2bartz

newbie question

Recommended Posts

Guest 2bartz

hi im new at autoit... can i ask how to hide the dos window

eg.

WinHide, cmd

sorry i'm a newbie at autoit and learning hoping for a reply

Edited by 2bartz

Share this post


Link to post
Share on other sites

From the Autoit help file

Run 
--------------------------------------------------------------------------------

Runs an external program.


Run ( "filename" [, "workingdir" [, flag]] )


 

Parameters

filename The name of the executable (EXE, BAT, COM, or PIF) to run. 
workingdir [optional] The working directory. 
flag [optional] The "show" flag of the executed program:
  @SW_HIDE = Hidden window
  @SW_MINIMIZE = Minimized window
  @SW_MAXIMIZE = Maximized window 

 

Return Value

Success: The PID of the process that was launched.
Failure: Depends on RunErrorsFatal; see Remarks.

 

Remarks

To run DOS (console) commands, try RunWait(@ComSpec & " /c "  & 'commandName', "", @SW_HIDE)  <==== LOOK HERE

After running the requested program the script continues. To pause execution of the script until the spawned program has finished use the RunWait function instead.

By default the script will terminate with a fatal error if the Run function fails. To set @error to 1 as an indication of failure, see AutoItSetOption.

Share this post


Link to post
Share on other sites
Guest 2bartz

OMG! :lmao: all the syntax in the help file tnx 4 the reply Mhz!!! o:)

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...