Windows DOS Tricks

From ben.goodacre.name/tech

Jump to: navigation, search

Copy a folder and retain its permissions:

xcopy c:\sourcedir c:\newdir /o /x /e /h /k

For command-history in DOS press F7

Grep for Windows:

type file.txt|find "search text"

Files can be dragged and dropped onto the command window for their full path to be inserted.

The native equivalent of TreeSize for DOS:
tree c:\ >ctree.txt
Rename the title bar of the DOS Window:
title "new title"

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox