Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
DOS directory printing
Name: Catherine P Date: November 18, 1999 at 09:54:30 Pacific
Comment:
I would like to know the DOS command to print a directory to a file. I have several thousand files I need to have a hard copy index of, and would like to print to a text file so I can import into Excel or another program.
I know there's a command where I can do a DIR, then extract or something to a *.txt file.
I need to get a listing of files on an old server that's going away 12/31 (NetWare 3.12) so that I can have a checklist of moving the files to my new server, so a quick answer would really be appreciated.
Name: browser Date: November 18, 1999 at 10:25:57 Pacific
Reply:
You can use the DOS redirection feature.
DIR C:/S >C:\ALLFILES.TXT
DIR C:/S (will list all files and sub-directory files on the C: drive).
> (is the DOS re-direction symbol)
C:\ALLFILES.TXT (will put it in a file named ALLFILES.TXT which is on the C: root directory).
This will take a little while to write the entire file, so be patient and wait 1 or 2 minutes for it to complete. It will be through when you see a new C:\> prompt. It will be a simple ASCII text file.
0
Response Number 2
Name: Catherine P Date: November 18, 1999 at 12:23:50 Pacific
Reply:
Thank you very much! It worked great. I saved to a text file, then opened in Word, turned it into several tables, cut out the garbage, moved it to Excel, and it's going to work out perfectly for me. Thanks for such a quick response. Catherine
0
Response Number 3
Name: Mindy Date: November 20, 1999 at 12:58:11 Pacific
Reply:
I think you can also do this from the directory you want to print: dir >prn
Summary: 20 Win98 SE Machines networked in the same workgroup. 10 of them are sharing various printers, such as Lexmark and HP. At random times throughout the day, each of the 10 shared printers will simultane...
Summary: Please help. How to I create a DOS directory with the name MMDDYYHHMM for today's date. I am working in the Windows NT 4 environment. I have tried the suggestions posted. With FOR /F "tokens=2,3,4 de...