View Single Post
Old 09-02-08, 11:51 AM   #7
VipertheSniper
Ace of the Deep
 
Join Date: Sep 2002
Location: Austria
Posts: 1,074
Downloads: 0
Uploads: 0
Default

cmd /C dir /S *.dwg /A > list.txt

This will close the console after it's finished. And also give you the files located in subdirectories... depending on how much there are you'll maybe want to use the the switch /B with the dir command, then you'll only get the paths written to the text file

The command in the batch file would look like this...
cmd /C dir /S /B *.dwg /A > list.txt

Or easier dir /S /B *.dwg > list.txt

That'll close aswell after it has finished

Last edited by VipertheSniper; 09-02-08 at 12:02 PM.
VipertheSniper is offline   Reply With Quote