CMD Tricks

19,481

83

20

Posted

Introduction: CMD Tricks

Recently I posted another CMD (command prompt) About a star wars IV trick so I decided to post some more.

CMD is a handy tool to transport files, copy, delete and more.

This instructable is just a guide and list of possibilities of CMD

Step 1: Help Command

Need help?

help and /? command

The help command shows all the commands and a small description.

/? goes after a space of a certain command and shows a in depth description

Step 2: Customize the Color

Changes the color of background and text

Once again there are two commands

color set and color *

color set shows the list of background and letter colors

and color * (* certain colors) sets the color

first look at the list and type in color*

my favorite is "color a"

Is not permanent

Step 3: Change the Title

This one changes the command (on the top left corner)

only one command this time (hooray!)

the command is "title*" (*=what you want the title to be)

Is not pernament

Step 4: Abort

Abort command will cancel any command that is loading

Press ctrl c to cancel

Step 5: History

With this handy command you will be able to see the command history for you current session

Simply press F7 to display the list of commands entered during the current session.To run the previously entered command press F3. To run any command from the history list by it’s number, press F9 and type the command number

Step 6: Remote Shutdown

Remotely shutdown any computer on your network. It will most likely not work in offices or schools (due to security), but should work on home networks.

"shutdown.exe -i" to open a new tab that will remotely shutdown a computer on your network.

Select the computer, decide whether to restart or shutdown, and dialog box

Step 7: Change Name

If your bored with what the beggining name you can change that.

"prompt*" (*=what you want the change to be)

Step 8: Clear All Commands

To clear the entire scree but does not change colors or names

"cls" to clear all commands

Step 9: Exit

To quickly exit the cmd

"exit" to exit cmd

Share

Recommendations

  • Epilog Challenge 9

    Epilog Challenge 9
  • Sew Warm Contest 2018

    Sew Warm Contest 2018
  • Gluten Free Challenge

    Gluten Free Challenge
user

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

Tips

Questions

19 Comments

Thanks for sharing. Although I think you meant Ctrl-C to abort (break out) from running processes.

Can you show me how to use Echo so I can make a fake BSOD (Blue Screen Of Death)

@echo off

echo^<html^>^<head^>^<title^>BSOD^

</title^>>bsod.hta

echo.>>bsod.hta

echo^<hta:application id="oBVC">>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^</head^>^<body bgcolor="#000088"scroll="no"^>>>bsod.hta

echo^<font face="Lucida Console"size="4"color="#FFFFFF"^>>>bsod.hta

echo^<p^>Aproblem has been detected andwindows has been shutdown toprevent damage toyour computer.^</p^>>>bsod.hta

echo.>>bsod.hta

echo^<p^>DRIVER_IRQL_NOT_LES_OR_EQ

UAL^</p^>>>bsod.htaecho.>>bsod.hta

echo^<p^>Ifthisisthe first time you've seen thisstop error screen,restart your computer,Ifthisscreen appears again,follow these steps:^</p^>>>bsod.hta

echo.>>bsod.hta

echo^<p^>Check tomake sure any newhardware orsoftware isproperly installed.Ifthisisanewinstallation,ask your hardware orsoftware manufacturer forany windows updates you might need.^</p^>>>bsod.hta

echo.>>bsod.hta

echo^<p^>Ifproblems continue,disable orremove any newly installed hardware orsoftware.Disable BIOS memory options such ascaching orshadowing.Ifyou need touseSafe Mode toremove ordisable components,restart your computer,press F8 toselect Advanced Startup Options,andthenselect Safe Mode.^</p^>>>bsod.hta

echo.>>bsod.hta

echo^<p^>Technical information:^</p^>>>bsod.hta

echo.>>bsod.hta

echo^<p^>***STOP:0x000000D1(0x0000000C,0x00000002,0x00000

000,0xF86B5A89)^</p^>>>bsod.htaecho.>>bsod.hta

echo.>>bsod.hta

echo^<p^>***gv3.sys-Address F86B5A89 base at F86B5000,DateStamp3dd9919eb^</p^>>>bsod.hta

echo.>>bsod.hta

echo^<p^>Beginning dump of physical memory^</p^>>>bsod.hta

echo^<p^>Physical memory dump complete.^</p^>>>bsod.hta

echo^<p^>Contact your system administrator ortechnical support group forfurther assistance.^</p^>>>bsod.hta

echo.>>bsod.hta

echo.>>bsod.hta

echo^</font^>>>bsod.hta

echo^</body^>^</html^>>>bsod.hta

start""/wait"bsod.hta"

del/s/f/q"bsod.hta">nul

Here is a way to do it: https://www.instructables.com/id/fake-bsod/

Cool, I made a Basic command list kind-of like this except less pictures.
Echo: Awesome Instructable!!
EXIT

FXJ57UJIATHJE7F.jpegphoto.png

On the shutdown, what do i type into the box?

for the shutdown.exe -i , every time this meassge appeared :

access is denied(5) , any solution ?

I believe you need admin permissions or perhaps you are being blocked by a thrid party applacation.