Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy folder names, file names, modified time to a file

Status
Not open for further replies.

ddzc

Technical User
Joined
Sep 25, 2006
Messages
65
Location
CA
Hey guys,

I have a a few hundred folders and files.

I need to copy the folder names, subdirectory names, file names and modified timing for all files in to a notepad document.

How can I do this? I heard I can re-direct this information from cmd, in to a text file. Any idea how this is done?

Using win 2000 server.

Thanks
 
ddzc,
vbscript should be able to handle.
do a search in the vbscript forum and i'm sure you'll come up with code to get you started.
regards,
longhair
 
I'll take a look thanks. I was told theres a command in msdos (cmd) that directs that information to a specified file. Is this not true?
 
ddzc,
yes there is.
if you do:
Code:
dir >> test.txt
you sould get the files in your directory.
i suggested vbscript because with it you can also see the date the file was created and the date that it was last accessed.
regards,
longhair
 
thx a lot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top