Thursday, December 3, 2009

Useful DOS command

Folder Del without asking Yes/No

rd /S /Q folderpath

Folder creation

mkdir foldername


Create new Notepad


echo >> filename.txt

Reboot from CMD


No args Display this message (same as -?)
-i Display GUI interface, must be the first option
-l Log off (cannot be used with -m option)
-s Shutdown the computer
-r Shutdown and restart the computer
-a Abort a system shutdown
-m \\computername Remote computer to shutdown/restart/abort
-t xx Set timeout for shutdown to xx seconds
-c "comment" Shutdown comment (maximum of 127 characters)
-f Forces running applications to close without warnings

No comments:

Post a Comment