Useful commands

DELTREE equivalent

Late versions of DOS had deltree (delete a directory tree), newer windows do not.

RD can however delete a full tree with the /S switch:

C:\> rd C:\somedir /s

Use /Q to skip confirmation.

The stronger versions of Windows (like Vista and Seven) might require administrator privileges.

Source: http://malektips.com/2000wd0008.html

Console with elevated privileges

Quick way to run a console as administrator:

Type cmd in Start menu's search box, right click cmd.exe and select “Run as Administrator”

Note: the runas /user:Administrator cmd command might also be used but it will request the administrator password

msw/cmd.txt · Last modified: 2010/11/11 19:54 by Toni Corvera
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki