Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

genaration of folder and sub folder names 1

Status
Not open for further replies.

PhilGooch

Mechanical
Joined
Feb 26, 2002
Messages
9
Location
GB
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" !!
 
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.
 
i need this list to be a .txt document and to be structured like:

D:\parts\12D:\parts\12\abcD:\parts\12\xyz\sde\zsde
etc.
 
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.
 
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."
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top