Is there any way to create a meaningful list of all files on a device (drive, folder, usb stick), in such a way that they can be read into e.g. an MSAccess database, including directory structure, etc.?
When using the DOS based Dir to create a text file, the actual filenames are written last in each line, after an undeterminate number of folders and subfolders on the line.
mikkelone
0
Newbie Poster
Recommended Answers
Jump to Posttry using the /b, switch one directory or filename per line, with full paths.
Dir /?
will also show you more options.
Jump to PostTry piping the output of a tree command to a txt file. Your dbase may not be able to cope with the non-alphanumerics, though...
eg: tree G: /F > C:\filelist.txt
All 8 Replies
tinstaafl
1,176
Posting Maven
gerbil
216
Industrious Poster
mjdodd
27
Posting Pro
mikkelone
0
Newbie Poster
tinstaafl
1,176
Posting Maven
PhilliePhan
171
Central Scrutinizer
Team Colleague
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
PhilliePhan
171
Central Scrutinizer
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.