Jump to content

Recommended Posts

Posted

I am using the "Run" to execute a BAT. The BAT file takes a few seconds to kick in for what it is doing. It run's the bat, but it seems to close before it actually does anything. If I double click the BAT it works fine.

$file = "run.bat"
Run($file)

Any suggestions on how to slow down the Run or an alternate method would be greatly appreciated.

  • Developers
Posted (edited)

nope doesnt work :lmao:

<{POST_SNAPBACK}>

Try:

Run(@comspec & " /k run.bat") this will keep the command window open.

Run(@comspec & " /c run.bat") this will close the command window when batch file is done.

Edited by JdeB

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.
  :)

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
×
×
  • Create New...