3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Slightly More Advanced Basic Batch

Step 4BAT2EXE: Hiding your Haxing

BAT2EXE: Hiding your Haxing
«
  • Screenshot- Bat To Exe Converter v1.3.png
  • Screenshot-Bat To Exe Online Converter - Mozilla Firefox.png
Ok, so you've made a nice lil shutdown Batch for yourself, but now how do you go about keeping the file a secret?

Sure, you could name the .bat to something like "Anti-Shutdown.bat" or something, but you can still read it, and edit it by Right-Clicking and selecting "Edit"

The safest way is to make your .bat into a .exe!

Yes! Perfect! That'll keep it hidden!

But how do you do that?

You use a Bat to Exe converter from F2ko.de.

It's a pretty neat website, actually, because they have an Online batch converter as well, in case you're paranoid about downloading files from the internets.

I've uploaded the file to Instructables for your convenience, but you can simply download the original from F2ko.de, or even use their online version.

That's it for this edition!

~Seeya!~
« Previous StepDownload PDFView All StepsNext Step »
30 comments
Oct 30, 2011. 9:39 PMDoublegforce says:
Nice work, you explained it easily and thoroughly, I commend you on your work.
May 4, 2011. 4:30 PMleggomylegoeggo says:
my friend showed me this;
for /l %%n in (1,1,____) do md %%n (inset a number for the ___)
it will make however many empty folders as you specify in the location that th file is in. my question is how does it work? "what does it mean?!"
*ahem* sorry. reference to double rainbow song..
Feb 15, 2007. 7:27 AMfretmelter says:
im confused when type the shutdown command in cmd it works. But when i put it in my batch file the window pops up like it should but it types it over and over agian and never does any thing. Why is it doing this?
Aug 20, 2010. 5:13 AMmessmaker says:
try making it a shortcut. desktop>>right-click>>new>>shortcut. shutdown -s -f -t 15 -c "type a message here" read my instructables to learn how to send it =]
Jul 8, 2007. 5:45 PMMintell says:
I think that net send and shutdown -m are fun.
Jun 25, 2009. 9:00 AMwill421 says:
Shutdown -m? What does that do?
Aug 9, 2010. 1:35 AMmichaelb958 says:
shutdown -m \\computername
does:
shuts down the computer computername

Of course, one still needs to specify -s [shutdown], -r [restart], or -a [abort] to actually do something. (-L [logoff] doesn't work with -m]

So, if you wanted to cause trouble with the person using computer bedroom, then the command would be:
shutdown -r -m \\bedroom -f -t 0
Aug 20, 2010. 4:08 AMmessmaker says:
yea they are fun. or just run, shutdown -i (remote shutdown dialogue) that does the same thing.
Apr 20, 2009. 2:13 PMdspent says:
In order to make this work on XP and above you need to run it in compatibility mode (win 95). Also make sure all of the files you include (icon, dlls etc) are in the same directory as bat_to_exe_converter.exe. and don't forget to set the saveas attribute if you wish for it to create the exe file in some other directory.
Jul 19, 2007. 7:45 PMtanman37 says:
Ok, how do i use bat2exe, ive trieds using different methods, it doesnt work!! argh!!!
Feb 19, 2009. 6:53 AMee0u30eb says:
Convert them youself.... go and download Bloodshed Dev C++, then make a new c program. Use this basic structure: #include int main(void) { BATCHCODE } Now where I have written BATCHCODE you must gett he program to make system calls that will call the batch commands. So for example: system("echo This is a batch command"); The only thing you need to remember is that the system command will require escape codes to process everything. For example if you want it output a system command that has a backslask in it, then to make it work you will need to use two backslashes instead of one. So if your batch comand was: cd c:\windows your new command is: system("cd:\\windows"); REMEMBER the semi colon at the end of the line! When you have finished, compile it and run it, you will now have an exe file. It will need repackaging to include an icon if you want one.
Apr 3, 2007. 4:10 PMsk8terboi3600 says:
i downloaded that bat2exe file. problem is when i open it, it doesn't stay open. it just closes. Any way to fix that?
May 17, 2008. 7:55 PMtw says:
you can click on the batch file and drag it to bat2exe and it will convert it
Jul 11, 2007. 1:21 PMmmzdaniel says:
it wont... i have the same problem... my batch file is named b.bat and the conversion is bat2exe b.bat and it wont work...
Jul 25, 2007. 8:38 PMmmzdaniel says:
yes and short name
Jul 26, 2007. 9:34 PMmmzdaniel says:
ok ill try them now... btw AVG said the old bat2exe was a virus...
Apr 2, 2008. 3:41 PMmaker12 says:
@echo off echo lol pause>nul
Apr 4, 2008. 9:48 AMmaker12 says:
@ECHO off ECHO text here cscript.exe /nologo "target file here" ECHO text here
Jul 26, 2008. 11:11 PMQwertyuioLP says:
what does this do?? I have tried it but when i open int CMD flashes for like 2 seconds and then closes
Jan 23, 2009. 10:42 PMcowen says:
You have to make a script to run. cscript is the DOS command script utility vbs is windows version. Java is the same way dos and windows functions. nologo causes it not to prompt. This is all good but I have disabled most of these from the local system and have the commands networked in only during boot then close that path out when it is done. my lil hax to stop kiddys from playing. anything I need is on a secure thumb drive. bios is blocked, usbs disabled. and I monitor for things being unplugged upon doing that the system emits a loud constant tone which can only be stopped by admins. cd and floppy are shut off and all policies are intact. also a run list in the register for allowed programs. and reg tools are removed from users so you can not make urself an admin account. cmd.exe is disabled. I like to follow these sites most of the tips on here are good for 12 year old to play with but if things are proper all you can do is work. Sorry guys but hey I like the tips so I can secure things and shut down un needed ports on the firewall to filter content.
Jul 28, 2007. 11:31 AMmmzdaniel says:
okay... but can you tell us how it works? cause that way we could make our own converter lol....
Jul 29, 2007. 9:44 PMmmzdaniel says:
oh well....lol
Jul 31, 2007. 10:17 PMmmzdaniel says:
i did not try it yet but thanks for helping me!
Mar 24, 2008. 7:54 PMfredricksburgthethird says:
my school blocks access to batch files, hopefully it wont stop my new.exe file!
:1
netsend * you got haxed!!!!!!!!!!!!!!!!!!11111
goto 1
Sep 9, 2007. 2:07 AMJ.W says:
bloody noobs, none of you know nothing about programming, you just wanna make viruses.
Sep 21, 2007. 2:52 PMthemasterpyro says:
ummmm isnt that why we learn programing in the first place?so we can crash the whole world whenever we want as if its a pass time?
Jun 19, 2007. 6:18 AMzeco says:
How do you make this into an autorun. thank you
Feb 25, 2007. 11:42 AMmutant says:
Hey for a really advanced .bat file, download my Esheep Master Loader here: My site. It is open source, so all mods are welcome.
Nov 13, 2006. 6:27 AMWuzzy says:
Too bad, that if i use doscommands in the batchfile, the dosbox still appears. Any way to fix that problem? Like if i use the following command in a batchfile: dir > c:\test.txt
Feb 21, 2007. 5:49 AMangusmca says:
You can use runh.exe to do this, with your exe'd batch file as a parameter. See http://thin.msterminalservices.org/runh.cfm for details.
Feb 7, 2007. 7:45 PMKBlackfox says:
just so people know, you have to rename the .com file above to bat2exe, because it will say "FIMBK67913ES176JDT". Just FYI, because it took me a while to catch on lol.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
22
Followers
5
Author:Neodudeman