Results 1 to 5 of 5

Thread: How to make a bat executable?

  1. #1
    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.

  2. #2
    Join Date
    Jan 2008
    Posts
    3,388

    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

  3. #3
    Join Date
    May 2008
    Posts
    4,085

    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.

  4. #4
    Join Date
    Apr 2008
    Posts
    3,267

    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

  5. #5
    Join Date
    Apr 2008
    Posts
    3,522

    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

Similar Threads

  1. Ubuntu 10.04: Executable Bit
    By Yago16 in forum Operating Systems
    Replies: 5
    Last Post: 14-01-2011, 10:06 PM
  2. VB6 executable cannot be run on Windows 7 64 bit
    By The!Winston in forum Software Development
    Replies: 5
    Last Post: 23-12-2010, 08:00 AM
  3. Want to run executable file
    By Jagadbandu in forum Operating Systems
    Replies: 4
    Last Post: 10-11-2010, 04:25 PM
  4. How to create an executable jar?
    By TalinF in forum Software Development
    Replies: 4
    Last Post: 25-07-2010, 03:21 AM
  5. Jar file not executable
    By Aaliya Seth in forum Software Development
    Replies: 5
    Last Post: 29-01-2010, 10:57 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,766,864.89962 seconds with 16 queries