If you need any help just personal message me or comment on the instructable
Remove these ads by
Signing UpStep 1: Making a batch file
T open notedpad go to Start>All programs>Accessories>Notepad.
Open notepad then type what script you want such as:
@echo off
color 0a
title CMD Commander - By Sharlston
:Top
echo.
set/p "command= %CD%> "
%command%
goto Top
Then save it as the name you want such as cmd.bat make sure you put the .bat
Then select the dropdown menu at the bottom where it says txt and put it to all files and save it
When you open the batch file you made it should open in command prompt for exaple the one i wrote will make your own command prompt in just a few bites in size

















![images[3].jpg](/files/deriv/FDY/MIS2/FXETSOYL/FDYMIS2FXETSOYL.LARGE.jpg)

















Visit Our Store »
Go Pro Today »




you know exactly what you are doing (Microsoft implemented some serious commands including format etc. 2.People make viruses with batch files.there was once a virus NOT written in batch that was called CIH. It was made in memory of the Chernobyl accident by Chen Ing-hau or é³ç豪. It activates on the 26th of april.
It cost 1 million dollars in commercial damages and was devastating to e-mail servers-Including intel. So there be careful out there i'm Christian an aged nine years old and computers are my favourite thing so seeya
Highvoltageguy signing out :)
YOLO
Highvoltageguy rules IMO
Also, why did you put "YOLO" there? It was out of context and disappointing.
you know exactly what you are doing (Microsoft implemented some serious commands including format etc. 2.People make viruses with batch files.there was once a virus NOT written in batch that was called CIH. It was made in memory of the Chernobyl accident by Chen Ing-hau or é³ç豪. It activates on the 26th of april.
It cost 1 million dollars in commercial damages and was devastating to e-mail servers-Including intel. So there be careful out there i'm Christian an aged nine years old and computers are my favourite thing so seeya
Highvoltageguy signing out :)
ping localhost -n 2 > nul
Or if you want it so they only have a few seconds to press a button before it does something,...
choice /c:12345 /t:5,10
if errorlevel 5 goto blah
if errorlevel 4 goto ha
if errorlevel 3 goto ba
if errorlevel 2 goto ma
if errorlevel 1 goto ta
The number after the comma tells how much time to wait. Hope this helped!
set /p command=
for one letter variables, where you have to type the letter than press enter. If you press something wrong, it either does something wrong or exits. If you have a one letter and you want to set a variable, you either do it in the program
set command=x
or if you want that variable to be inputted by the user and use it later on for data purposes. If you want to have the user input a variable if you simply want to go somewhere, you use the choice command. You don't have to press enter, and if you enter a wrong letter/number, it beeps! Also, you can time how long they have to input it before it does something, which is very useful in games.
Sorry, I talk too much.
www.instructables.com/id/Password-Protection-in-Batch/
something like
:1
echo enter current password
set /p password=
if %password%-==%realpass% (goto 1)
echo enter new password
set /p realpass=
and then some way to save make "realpass" the new "realpass" every time it runs. even if there is another file with the password in it, i want to be able to do this.
:Begin
if exist Password.txt (
goto Password
) else (
:1
set /p password=
echo %password% > Password.txt
goto Begin
:Password
set co= <Password.txt
set /p password=
if %password% EQU %co% (
goto somewhere
) else (
echo Wrong password.
echo.
echo Press 1 to go back, or exit in ten seconds.
choice /n /c:12
if errorlevel 2 exit
if errorlevel 1 goto Password
Hope this helped!
at the bottom:
choice /n /c:12 /t:2,10
if errorlevel 2 exit
if erroelevel 1 goto Password
)
Sorry!
the cheat is surf33
@echo off
color 0e
title Guessing Game by sharlston
set /a guessnum=0
set /a answer=%RANDOM%
set variable1=surf33
echo -------------------------------------------------
echo Welcome to the Guessing Game!
echo.
echo Try and Guess my Number!
echo -------------------------------------------------
echo.
:top
echo.
set /p guess=
echo.
if %guess% GTR %answer% ECHO Lower!
if %guess% LSS %answer% ECHO Higher!
if %guess%==%answer% GOTO EQUAL
set /a guessnum=%guessnum% +1
if %guess%==%variable1% ECHO hey you won, the answer is: %answer%
goto top
:equal
echo Congratulations, You guessed right!!!
echo.
echo It took you %guessnum% guesses.
echo.
pause
:Random
set rnd=%random%
if %rnd% GEQ 101 goto Random
:Game
echo Welcome to my guessing game...!
echo.
echo Guess my number:
set command=
set /p command=
if %command% EQU %rnd% (
echo You guessed my number!
echo.
echo Press 1 to play again. Game exits in ten seconds if no arguement is given.
choice /n /c:12 /t:2,10
if errorlevel 2 exit
if errorlevel 1 goto Game
)
Yours looked pretty good too!
ill send you the codes
http://www.instructables.com/id/how_to_send_a_message_to_all_comps_in_a_network/?comments=all#CUUKY5NFR0ZT8LB