Printing Directory

A

Abigail

Addition to my previous post.

I am trying to print the directory of a folder on a shared
drive. After the last post I have got as far as getting
the contents of the share drive but if I add on names of
further folders it doesn't work.

I had some advice that I should only use the first six
letters then ~1 which I have also tried (as well as a few
combinations) and it doesn't work.

Further help much appreciated!

Thanks
 
M

Matthias Tacke

Abigail said:
Addition to my previous post.

I am trying to print the directory of a folder on a shared
drive. After the last post I have got as far as getting
the contents of the share drive but if I add on names of
further folders it doesn't work.

I had some advice that I should only use the first six
letters then ~1 which I have also tried (as well as a few
combinations) and it doesn't work.

Further help much appreciated!
Hi Abigail,

without seeing neither the commands nor the actual response or your
intention it's difficult to help.

I guess it's a quoting issue.

dir "\\server\share\folder with spaces"

If you don't know the exact folder names append an asterisk.

dir "\\server\share\fold*"

To list all folder and subfolder names without the files

dir "\\servr\share" /B /AD /S

To learn the option of dir type in a cmd window

dir /?|more

HTH
 
P

Paul R. Sadowski

Abigail said:
Addition to my previous post.

I am trying to print the directory of a folder on a shared
drive. After the last post I have got as far as getting
the contents of the share drive but if I add on names of
further folders it doesn't work.

Double quote all the directory names:
dir "\\computer\share\dir1" "\\computer\share\dir2"
"\\computer\share\another dir"
 

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