DOS commands?

rated by 0 users
This post has 2 Replies | 1 Follower

Not Ranked
Posts 15
Points 165
Joined: May 2012
Flier Posted: Thu, Jun 28 2012 6:57 AM

Is there a way to display the contents of a folder and send the output to a .TXT file? (eg: list of file names in the folder)

Either a DOS command, windows option or even a nifty utility that could do this?

I'm after processing the files in a folder (copying, etc) via a Dos batch job, so some way of auto generating the file list would be useful.

Thanks :)

  • | Post Points: 20
Top 50 Contributor
Posts 2,904
Points 24,545
Joined: Jul 2001
Location: United States, New York
digitaldd replied on Thu, Jun 28 2012 8:38 AM

dir > filename.txt

 

use dir /? to get a list of switches to get the output the way you want it. back in the Win9x days i used to have a windows tool that did this. I think it may have been called something like Directory List & Print.

  • | Post Points: 20
Not Ranked
Posts 15
Points 165
Joined: May 2012
Flier replied on Thu, Jun 28 2012 2:18 PM

yeah - I did the /? thing but nothing like that showed up.

But thanks for the help :) (god it's been a long time since I last used DOS)

  • | Post Points: 5
Page 1 of 1 (3 items) | RSS