Hello Robert
Glad to hear that the "dir /b >dirlist.txt" worked for you. Since we spoke, I ran across this utility that may make your life a little easier:
JDirPrint is a freeware utility available from:
http://www.spadixbd.com/freetools/JDirPrint.htmYou could possible use jdirprint with @shell vs. using dir /b?
The JR Directory Printer Utility allows you to print a listing of every file contained within a directory and/or subdirectory(ies).
The result displayed in NotePad or default text editor as "dirprint.txt" file. This file is created in "JR Directory Printer" installtion folder, each time you click "Start" button.
Options:
Check Recurse Sub-directories option to see a complete list of all subdirectories and all files in all directories.
The Lowercase Filename option will force all file names into lowercase regardless of the actual file name.
Dos style filename option will limit the file name length within 8 chars.
Display Sub-directories will result in a list of all subdirectories contained under the selected directory along with a list of all individual files contained under the root directory. It will not list all subdirectories or individual files contained in the main subdirectories. To see a complete list of all subdirectories and all files in all directories, you would check the Recurse Sub-directories option and click on the Start button. This would rewrite the"dirprint.txt" file using the new options.
You can limit length file names so that they fits properly in list. By default this value is 35 chars.
You can check/uncheck Display Size, DateTime and Attributes option to list/unlist the file size, modified date/time and file attributes (a - Archives, r - Read Only, s - System, h - Hidden).
Download (size: 173 KB)
=======================
Re your reading CD issue. Here's a thought, but I can't guarantee it is a solution. Let me know results if you try this.
I believe that your working directory may have to be writeable for a system temp scratch file when you do a DIR listing. At times, many CDs are Read Only after files are burned onto it. So when you are trying to read the directories, perhaps be sure that your current working directory is somplace on your hard drive first.
If D is your CD, and C is your hard drive, do something like:
C:\
CD\temp
DIR D:\Folder\*.* /b >dirlist.txt