Hi Josephur
Thanks for your patience - I'm layman!
Ok; I've been experimenting with, and switched to power shell - and can now read the scripts easier.
I have a USB in the F: drive with about 50 folders; each folder contains sub-folders and files. Something like this :
dir f:\*\*\*\* > C:\mydirs\dirone.txt
works and gives me a directory in .txt format which I can import into excel for later use. However, dirone is enormous and almost impossible to work with. I want to be more selective and only create directories of top folders beginning with specific letters. Thus I can do something like this:
dir f:\pc*\*\*\* > C:\mydirs\dir_pc.txt
to give me a more manageable directory in dir_pc for all top folders beginning with "pc"; then create another directory for top folders beginning with "co"; i.e.:
dir f:\co*\*\*\* > C:\mydirs\dir_co.txt
This gives me two directories which I would need to combine to be useful - then a third, etc., etc. What I wold like to do (if it is possible) is combine pc* and co* in one command line:
dir f:\pc*,co*\*\*\* > C:\mydirs\dir_pcco.txt
which does not work! Can you tell if this is possible and what is the correct syntax? Many thanks. Ron. Smiley here!