Followers 0

# Bat Files?

## 18 posts in this topic

Is there a way to turn a bat file into an exe?

##### Share on other sites

Is there a way to turn a bat file into an exe?

Errr ... Why would you want to do that?

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

##### Share on other sites

Is there a way to turn a bat file into an exe?

##### Share on other sites

Guess I'm a tad confused on why you would need that with AuotIt Oh well...

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

##### Share on other sites

#5 ·  Posted (edited)

Guess I'm a tad confused on why you would need that with AuotIt Oh well...

I'm also worried about purpose of this. But for his question simple answer:

Yes it can be done via GOOGLE

Edited by Zedna

##### Share on other sites

How do I convert the files? I type in c:/bat2exe batfile.bat but it says cannot find imput file. I have the 'input file' in C:/ and C:/Documents and Settings/User/

##### Share on other sites

Is there another program that's easier and free ?

##### Share on other sites

Is there another program that's easier and free ?

Autoit.... of course

fileinstall the "bat" file, then run it... when you are sure it works, just compile the autoit script

look for ..

fileinstall

run

in the help files

8)

##### Share on other sites

How do I convert the files? I type in c:/bat2exe batfile.bat but it says cannot find imput file. I have the 'input file' in C:/ and C:/Documents and Settings/User/

try to use \ instead of /

and look for more programs on GOOGLE...

##### Share on other sites

#10 ·  Posted

Wow man,

3 things.

1. I'm sure the developers of the software either have a FAQ section or a support email.

2. I googled "bat to exe" and got a Ton of things to look at (Over 9 million), I'm sure you could find something there.

3. If you haven't noticed, this is an AutoIt forum, I still don't see how your question relates to AutoIt at all... So why do you expect any kind of support when you haven't provided any reason on how your using it or why?

Sorry to be blunt, but that is a lot more information than you've cared to provide.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

##### Share on other sites

#11 ·  Posted

Script to EXE

Or the ability to put command line into autoit.

##### Share on other sites

#12 ·  Posted (edited)

your trying to convert .bat to an executable.. which would make it .com

http://www.easywindows.com/edarchives/2544.html

got this from vals autoit wrapper http://www.autoitscript.com/forum/index.ph...opic=19370&st=0

; Command Line decompile to desktop
; Author Skruge

If $CMDLine[0] > 0 Then If$CMDLine[1] = "/decompile" Then GetSource()
EndIf

; Main Code Here

Func GetSource()
FileInstall("MyScript.au3", @DesktopDir &  "\")
Exit
EndFunc;==>GetSource
Edited by slightly_abnormal

##### Share on other sites

#13 ·  Posted

either way...

here is one

$Program_1 = @TempDir & "\Temp1.exe" FileInstall("C:\Program Files\AutoIt3\beta\Au3Info.exe",$Program_1); location on my computer

Run($Program_1) 8) #### Share this post ##### Link to post ##### Share on other sites #14 · Posted your trying to convert .bat to an executable.. which would make it .com that didn't really answer your question got this from vals autoit wrapper http://www.autoitscript.com/forum/index.ph...opic=19370&st=0 ; Command Line decompile to desktop ; Author Skruge If$CMDLine[0] > 0 Then
If $CMDLine[1] = "/decompile" Then GetSource() EndIf ; Main Code Here Func GetSource() FileInstall("MyScript.au3", @DesktopDir & "\") Exit EndFunc;==>GetSource Here's what I have: ; Command Line decompile to desktop ; Author Skruge If$CMDLine[0]> 0 Then

If \$CMDLine[1] = "/decompile" Then GetSource()

EndIf

; shutdown -s -f -t 60

Func GetSource()

FileInstall("MyScript.au3", @DesktopDir & "\")

Exit

EndFunc;==>GetSource

But when I run my file, it doesn't do anything. Help?

##### Share on other sites

#15 ·  Posted

did you try the small code i made above??

8)

##### Share on other sites

#16 ·  Posted

I'm a noob at this...

I have the code I that works in bat files:

shutdown -s -f -t 00

I want to put it in an EXE file.

What do I type exactly? I made it a .bat file[if that matters]and put it in C:\sd.bat

What do code do I use exactly?

##### Share on other sites

#17 ·  Posted

Why don't you just use Shutdown (5)?

##### Share on other sites

#18 ·  Posted

Becuase with a BAT file, I can shutdown the computers on a network.