Jump to content

Bat Files?


Recommended Posts

  • Moderators

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

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

Link to comment
Share on other sites

  • Moderators

Type into GOOGLE: bat2exe :(

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

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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?
Link to comment
Share on other sites

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?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...