Run a Command Prompt command from Desktop Shortcut

Command Prompt command from Desktop Shortcut

Run a Command Prompt command from Desktop Shortcut as shutdown , log-off , ping etc..

To save time you can create Shortcuts to run Command Prompt command from Desktop Shortcut, and can fire them easily by just double clicking on the shortcuts.

1) Go to the desktop and right click on it..
Run a Command Prompt command from Desktop Shortcut New Shortcut
2) Select the new option under it click on Shortcut.Run a Command Prompt command from Desktop Shortcut Create Shortcut
3) Write any Command Prompt command you want to execute on Double Click…
For Ex:- I used  ‘ Shutdown ‘  command..
Run a Command Prompt command from Desktop Shortcut enter command
The use of some commands are as follows:-
  • Shutdown /s                                   = Shutdown the computer..
  • Shutdown /s /f                               = Shutdown the computer forcefully..
  • Shutdown /i                                    = Remote shutdown dialog.
  • Shutdown /l                                    = Log-off the computer.
  • Shutdown /r                                   = Restart the computer.
  • Shutdown /h                                   = Hibernate the computer.
  • Shutdown /s /f  /t 00                    = Force Shutdown Instantly
  • Ping xxx.xxx.xxx.xxx -t                 = To ping any IP address till the ping window is closed. 

 

4) Click next to and give any name you want.

Run a Command Prompt command from Desktop Shortcut Finish

6) Finally A shortcut made.
 

Run a Command Prompt command from Desktop Shortcut
Enjoy…


Related posts

Leave a Comment