Batch file compiler

Discuss how to write good code, break bad code, your current pet projects, or the best way to approach novel problems

Batch file compiler

Post by WallShadow on Fri Apr 13, 2012 9:27 pm
([msg=65659]see Batch file compiler[/msg])

Small question to everyone:

Is there an actual use to compiling batch files with batch file compilers?
User avatar
WallShadow
Contributor
Contributor
 
Posts: 543
Joined: Tue Mar 06, 2012 9:37 pm
Blog: View Blog (0)


Re: Batch file compiler

Post by LoGiCaL__ on Fri Apr 13, 2012 10:52 pm
([msg=65661]see Re: Batch file compiler[/msg])

batch files are fun. Especially when you can schedule them.
User avatar
LoGiCaL__
Moderator
Moderator
 
Posts: 1049
Joined: Sun May 30, 2010 12:33 pm
Blog: View Blog (0)


Re: Batch file compiler

Post by WallShadow on Sat Apr 14, 2012 12:09 am
([msg=65665]see Re: Batch file compiler[/msg])

Agreed, however my friends would disagree with you on that point, it's always fun to have loud music spontaneously start playing on your friends computer while the teacher is giving an intricate lecture.
User avatar
WallShadow
Contributor
Contributor
 
Posts: 543
Joined: Tue Mar 06, 2012 9:37 pm
Blog: View Blog (0)


Re: Batch file compiler

Post by limdis on Sat Apr 14, 2012 9:16 am
([msg=65670]see Re: Batch file compiler[/msg])

WallShadow wrote:Agreed, however my friends would disagree with you on that point, it's always fun to have loud music spontaneously start playing on your friends computer while the teacher is giving an intricate lecture.


Hahahahaha this took me back to high school :lol:
"The quieter you become, the more you are able to hear..."
"Drink all the booze, hack all the things."
User avatar
limdis
Moderator
Moderator
 
Posts: 1006
Joined: Mon Jun 28, 2010 5:45 pm
Blog: View Blog (0)


Re: Batch file compiler

Post by mShred on Sat Apr 14, 2012 11:15 am
([msg=65678]see Re: Batch file compiler[/msg])

I'm not sure anyone is following Shadow's question.. You don't compile batch files. Depending on how you look at it, a batch file is a shitty equivalent to a script. You never compile it, just have the right file extension and let the handler do the work.
Image

For those about to rock.
User avatar
mShred
Administrator
Administrator
 
Posts: 1486
Joined: Tue Jun 22, 2010 4:22 pm
Blog: View Blog (2)


Re: Batch file compiler

Post by LoGiCaL__ on Sat Apr 14, 2012 11:26 am
([msg=65683]see Re: Batch file compiler[/msg])

Quick Batch File Compiler convert your batch files into actual program (.EXE format) in one click.An .EXE file is much harder to casually reverse-engineer, so this could be a way to conceal a particular batch file's operations from an end user. Content of your batch file will be encrypted and protected from changes.


Source: http://download.cnet.com/Quick-Batch-File-Compiler/3000-2069_4-10382057.html
User avatar
LoGiCaL__
Moderator
Moderator
 
Posts: 1049
Joined: Sun May 30, 2010 12:33 pm
Blog: View Blog (0)


Re: Batch file compiler

Post by mShred on Sat Apr 14, 2012 11:40 am
([msg=65686]see Re: Batch file compiler[/msg])

I can see where you're going with that, but that's a conversion. Not necessarily a compilation. But in regards to that, I'd say there is little to no point in doing so. .EXE's and .BAT's will both raise red flags. And being able to run the converted file on a different OS is also not something I'd be very apt to do considering any scripting language would be fifty times better.
Image

For those about to rock.
User avatar
mShred
Administrator
Administrator
 
Posts: 1486
Joined: Tue Jun 22, 2010 4:22 pm
Blog: View Blog (2)


Re: Batch file compiler

Post by LoGiCaL__ on Sat Apr 14, 2012 11:47 am
([msg=65687]see Re: Batch file compiler[/msg])

To be honest this is the first time I ever heard of such a thing. It seems somewhat redundant. I guess maybe for a paranoid sys admin it doesn't seem like a bad idea. You just have to remember to get rid of any remaining source for the batch file once it is converted into an executable.
User avatar
LoGiCaL__
Moderator
Moderator
 
Posts: 1049
Joined: Sun May 30, 2010 12:33 pm
Blog: View Blog (0)


Re: Batch file compiler

Post by WallShadow on Sat Apr 14, 2012 5:12 pm
([msg=65701]see Re: Batch file compiler[/msg])

I apologize, I did in fact mean converting batch files into executable files and not compiling them. And as for the reasons, I've only managed to come up with two:

1. You can't simply right click a .exe and open it with notepad and see what it does just as you do with batch files. I know cause I've tried it. And even if you want to decompile it with some special program, it's going to take some time to figure out what it originally was.

2. You always have to remember the idiot. The mere fact that the extension is no longer .bat and that you can't simply edit it gives idiots two less reasons to complain.


And I'm not saying that I'm supportive of this, I just saw it one day and thought it was neat.
User avatar
WallShadow
Contributor
Contributor
 
Posts: 543
Joined: Tue Mar 06, 2012 9:37 pm
Blog: View Blog (0)



Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests

cron