Sign in to follow this  
Followers 0
EL Diablo

Bat Files?

18 posts in this topic

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


Share this post


Link to post
Share on other sites



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

Errr :think: ... 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 this post


Link to post
Share on other sites

Type into GOOGLE: bat2exe :(

Guess I'm a tad confused on why you would need that with AuotIt :think: 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 this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Guess I'm a tad confused on why you would need that with AuotIt :think: 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 this post


Link to post
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/

Help please?


Share this post


Link to post
Share on other sites

Is there another program that's easier and free ?


Share this post


Link to post
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)


NEWHeader1.png

Share this post


Link to post
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/

Help please?

try to use \ instead of / :think:

and look for more programs on GOOGLE...

Share this post


Link to post
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 this post


Link to post
Share on other sites

#11 ·  Posted

Script to EXE

Or the ability to put command line into autoit.


Share this post


Link to post
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

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
Edited by slightly_abnormal

Share this post


Link to post
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)


NEWHeader1.png

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

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

#15 ·  Posted

the decompile code ** will not help you ***

did you try the small code i made above??

8)


NEWHeader1.png

Share this post


Link to post
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 this post


Link to post
Share on other sites

#17 ·  Posted

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

Share this post


Link to post
Share on other sites

#18 ·  Posted

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


Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0