Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to make a bat executable?

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 27-03-2010
Member
 
Join Date: Nov 2009
Posts: 72
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.

Reply With Quote
  #2  
Old 27-03-2010
Member
 
Join Date: Jan 2008
Posts: 3,384
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
Reply With Quote
  #3  
Old 27-03-2010
Member
 
Join Date: May 2008
Posts: 4,080
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.
Reply With Quote
  #4  
Old 27-03-2010
Member
 
Join Date: Apr 2008
Posts: 3,260
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
Reply With Quote
  #5  
Old 27-03-2010
Member
 
Join Date: Apr 2008
Posts: 3,518
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
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to make a bat executable?"
Thread Thread Starter Forum Replies Last Post
Ubuntu 10.04: Executable Bit Yago16 Operating Systems 5 14-01-2011 10:06 PM
VB6 executable cannot be run on Windows 7 64 bit The!Winston Software Development 5 23-12-2010 08:00 AM
Want to run executable file Jagadbandu Operating Systems 4 10-11-2010 04:25 PM
How to create an executable jar? TalinF Software Development 4 25-07-2010 03:21 AM
Jar file not executable Aaliya Seth Software Development 5 29-01-2010 10:57 AM


All times are GMT +5.5. The time now is 12:51 PM.