Extracting txt information from a mapped drive to import to excel

G

Guest

Hello:

I'm trying to figure out a way I can take the file names shown in a mapped
server export them to a an excel file.

For example.
Mapped drive U:\folderA\ contains 100+ plus .Doc files. I'm trying to find
a way to take all of file names and import them to an excel file so I can use
Access to search the names and bounce them off of another table to run a
report.

Earlier I post a simliar question and Alice provided the "dir >
filelist.txt" function which works great. My problem is this only works for
for files currently on my C: drive. (I'm unable to use the Dos comand to get
to a mapped directory..)

If there is another way or does anybody body have a suggestion on
accomplishing this task?

Thanks.
 
P

Pegasus \(MVP\)

Deathvalley said:
Hello:

I'm trying to figure out a way I can take the file names shown in a mapped
server export them to a an excel file.

For example.
Mapped drive U:\folderA\ contains 100+ plus .Doc files. I'm trying to find
a way to take all of file names and import them to an excel file so I can use
Access to search the names and bounce them off of another table to run a
report.

Earlier I post a simliar question and Alice provided the "dir >
filelist.txt" function which works great. My problem is this only works for
for files currently on my C: drive. (I'm unable to use the Dos comand to get
to a mapped directory..)

If there is another way or does anybody body have a suggestion on
accomplishing this task?

Thanks.

Instead of typing
dir > filelist.txt you should type
dir "U:\FolderA" > c:\filelist.txt or perhaps
dir /b /on "U:\FolderA" > c:\filelist.txt
 
G

Guest

Thank you.

This site rocks...


Pegasus (MVP) said:
Instead of typing
dir > filelist.txt you should type
dir "U:\FolderA" > c:\filelist.txt or perhaps
dir /b /on "U:\FolderA" > c:\filelist.txt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top