How to make a bat executable?
Hello to all,
I know that we used batch file to execute lists of particular commands in particular sequence. I also want to create that batch file but I don't know how to make that bat file executable. Can anyone tell me how to make a bat executable? Please help me.
Thank you.
Re: How to make a bat executable?
Hey you can easily convert your .BAT file into .EXE or .COM file. To do this you have to use bat_to_exe_converter. To get this application click here. Following are the features of it.
# Ghost applications
# Additional binaries, icons, versioninformations
# Hidden source
Re: How to make a bat executable?
You have to use following steps to make a bat executable.
1.First download bat_to_exe_converter file in your computer.
2.Now run this application.
3.Now using this program you can select file that you want to convert into an executable file.
4.Using this you can also add more information like file version, company, copyright, etc.
Re: How to make a bat executable?
As per my information windows can also use the bat2exe.com file to converts your batch files into a .com file. This is one of the most popular and easy method. This is also executable. This is also used to hide the content or commands ran in the batch file. After downloading this file just move it to the file where you have save your batch file and then use command like below:
bat2exe Pots.bat
Re: How to make a bat executable?
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