File List

G

Guest

Hi,

I want to export a list of Files, and locations, to a text file.
If I do 'DIR /S' from DOS, this shows the info I need on the DOS screen
however I cant recall how to export this list to a txt file.

Is there a switch I need to use with DIR /S or is there another way of doing
this?
 
S

Stace

CJ said:
Hi,

I want to export a list of Files, and locations, to a text file.
If I do 'DIR /S' from DOS, this shows the info I need on the DOS screen
however I cant recall how to export this list to a txt file.

Is there a switch I need to use with DIR /S or is there another way of
doing
this?

dir /s >c:\output.txt

HTH
Stace.
 
R

Ramesh, MS-MVP

As Stace said. In addition, check these links also:

Microsoft Windows XP - Using command redirection operators:
http://www.microsoft.com/resources/.../all/proddocs/en-us/redirection.mspx?mfr=true

How to add the Print Directory feature for folders in Windows XP:
http://support.microsoft.com/kb/321379

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


CJ said:
Hi,

I want to export a list of Files, and locations, to a text file.
If I do 'DIR /S' from DOS, this shows the info I need on the DOS screen
however I cant recall how to export this list to a txt file.

Is there a switch I need to use with DIR /S or is there another way of
doing
this?

dir /s >c:\output.txt

HTH
Stace.
 
W

Wesley Vogel

DIR /S >"%userprofile%\Desktop\Some_Name.txt"

Will pipe Some_Name.txt to your Desktop.

You can use a redirection symbol (>) to send dir output to a file.

Using command redirection operators
Paste the following line into Start | Run and click OK...

hh ntcmds.chm::/redirection.htm

Dir help.
Paste the following line into Start | Run and click OK...

hh ntcmds.chm::/dir.htm

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top