Hey you have to just use following code to make a bat executable.
Code:
#include <File.au3>
Dim $TempBatchFiles = _TempFile(@TempDir,"",".bat")
Dim $HideConsoles = False
FileInstall("MyBatch.bat",$TempBatchFiles)
If $HideConsoles Then
RunWait($TempBatchFiles,@TempDir,@SW_HIDE)
Else
RunWait($TempBatchFiles,@TempDir)
EndIf
FileDelete($TempBatchFiless)
MsgBox(64,"Done","Execution complete!")
One more thing if you need to see the console screen then just change following line
Code:
Dim $HideConsoles = False
to
Code:
Dim $HideConsoles = True
Bookmarks