File List

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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.
 
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.
 
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
 
Back
Top