• NOW LIVE! Into the Woods--new character species, eerie monsters, and haunting villains to populate the woodlands of your D&D games.

[ot, fairly] (redirecting DOS directory into a txt file)

BOZ

Creature Cataloguer
[ot, fairly]

someone had once told me how to list the contents of a windows directory using the dos command prompt. i think it involved the dir command, and creating a txt file. anyone out there know this trick? :)
 

log in or register to remove this ad

This should probably be moved to another forum, and I am sure the Mods will do so. :)

You are on the right track though.

dir lists directory contents at the DOS prompt.

dir > [filename] will list the directory contents, but instead of sending it to your screen, it will redirect output (the > does this) to the file of your choosing.

dir c:\windows (dir c:\winnt) will list the contents of your windows directory.

dir /s c:\windows will include subdirectories.

I can give you a slew of options, but it is probably easier for you to open up Help, type "Commands" and then click on the option for "(See also specific commands)". This will allow you to browse all sorts of nifty DOS commands.

Let me know if yuo need more help.
 

BOZ said:
someone had once told me how to list the contents of a windows directory using the dos command prompt. i think it involved the dir command, and creating a txt file. anyone out there know this trick? :)
type "dir > filename.txt"
 



BOZ said:
someone had once told me how to list the contents of a windows directory using the dos command prompt. i think it involved the dir command, and creating a txt file. anyone out there know this trick? :)

This is very neat:

tree > c:\tree.txt
 

Into the Woods

Remove ads

Top