×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

genaration of folder and sub folder names

genaration of folder and sub folder names

genaration of folder and sub folder names

(OP)
is there a way that I can generate a list of folders and sub folders within one path? eg. If I have a folder called "D:\parts" can a get a list of all folders and sub folders within that?

The reason I ask is that I need to generate a series of search paths and typing them in will take hours even with great use of "copy" and "paste" !!

RE: genaration of folder and sub folder names

You could also just write a small program to do this. Do you have Excel? If so, and if you want, I can whip up a quick program that will output the directory structure to a spreadsheet. Just let me know.

DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.

RE: genaration of folder and sub folder names

(OP)
i need this list to be a .txt document and to be structured like:

D:\parts\12\
D:\parts\12\abc\
D:\parts\12\xyz\sde\zsde\

etc.

RE: genaration of folder and sub folder names

Even easier, go back to DOS.

If you want the directory structure of D:\Parts

Start>Programs>MS DOS Prompt

dir d:\parts\*. /s/b > list.txt

The list will be stored in the file list.txt

Hope this helps...

DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.

RE: genaration of folder and sub folder names

If you use Outlook (not Express), you can print out a drives contents just as if you were looking at it with Explorer.

On the left-hand menu at the bottom, select the Other Shortcuts tab.  Then search in My Computer or My Documents as you would normally do in Explorer.  Once you display the directory information you are looking for, simply Print.

Play around with it, and you can even figure out how to change the column headers of the displayed info.  Great feature for generating quick check lists of items.

"Happy the Hare at morning for she is ignorant to the Hunter's waking thoughts."

RE: genaration of folder and sub folder names

Open dos prompt.
Dir C:*. /s >dirlist.txt

Open dirlist.txt with Notepad or even import it to Excel. Edit to suit.

There are many options available here - type dir /? to find them
The >filename.txt is a redirect command. You can do >lpt1 or >prn if you just want a printed list.

Crashj 'easy enuf?' Johnson

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources