EL Diablo 0 Report post Posted May 2, 2006 Is there a way to turn a bat file into an exe? Share this post Link to post Share on other sites
SmOke_N 199 Report post Posted May 2, 2006 Is there a way to turn a bat file into an exe?Errr ... Why would you want to do that? 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. Share this post Link to post Share on other sites
Zedna 166 Report post Posted May 2, 2006 Is there a way to turn a bat file into an exe?Type into GOOGLE: bat2exe Resources UDF ResourcesEx UDF AutoIt Forum Search Share this post Link to post Share on other sites
SmOke_N 199 Report post Posted May 2, 2006 Type into GOOGLE: bat2exe Guess I'm a tad confused on why you would need that with AuotIt Oh well... 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. Share this post Link to post Share on other sites
Zedna 166 Report post Posted May 2, 2006 (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 May 2, 2006 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Share this post Link to post Share on other sites
EL Diablo 0 Report post Posted May 2, 2006 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/ Help please? Share this post Link to post Share on other sites
EL Diablo 0 Report post Posted May 2, 2006 Is there another program that's easier and free ? Share this post Link to post Share on other sites
Valuater 107 Report post Posted May 2, 2006 Is there another program that's easier and free ?Autoit.... of coursefileinstall the "bat" file, then run it... when you are sure it works, just compile the autoit scriptlook for ..fileinstallrunin the help files8) Share this post Link to post Share on other sites
Zedna 166 Report post Posted May 2, 2006 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/Help please?try to use \ instead of / and look for more programs on GOOGLE... Resources UDF ResourcesEx UDF AutoIt Forum Search Share this post Link to post Share on other sites
SmOke_N 199 Report post Posted May 2, 2006 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. 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. Share this post Link to post Share on other sites
EL Diablo 0 Report post Posted May 2, 2006 Script to EXE Or the ability to put command line into autoit. Share this post Link to post Share on other sites
slightly_abnormal 1 Report post Posted May 2, 2006 (edited) your trying to convert .bat to an executable.. which would make it .com http://www.easywindows.com/edarchives/2544.htmlthat 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 Edited May 2, 2006 by slightly_abnormal Share this post Link to post Share on other sites
Valuater 107 Report post Posted May 2, 2006 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
EL Diablo 0 Report post Posted May 2, 2006 your trying to convert .bat to an executable.. which would make it .com http://www.easywindows.com/edarchives/2544.html 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 this post Link to post Share on other sites
Valuater 107 Report post Posted May 3, 2006 the decompile code ** will not help you *** did you try the small code i made above?? 8) Share this post Link to post Share on other sites
EL Diablo 0 Report post Posted May 3, 2006 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 this post Link to post Share on other sites
greenmachine 4 Report post Posted May 3, 2006 Why don't you just use Shutdown (5)? Share this post Link to post Share on other sites
EL Diablo 0 Report post Posted May 3, 2006 Becuase with a BAT file, I can shutdown the computers on a network. Share this post Link to post Share on other sites