how do i copy multiple folder title

April 5, 2005 at 04:20:12
Specs: xp pro, 3.6 / 1gig

wow uy guys are good... seee if u can help with this.

I have multple folders (100's) and would like to copy the names of them (not the contents) and put them into my m/word / excel doc. Is it possible to do it in multiple or do i have to do it individual ?.

Thxs again for your help

tia Jon


See More: how do i copy multiple folder title

Report •


#1
April 5, 2005 at 06:00:00

solution i only think just at this moment is havin a resized picture of the screenshot when ur in explorer . But it depends on what u want to make with this list...

Report •

#2
April 5, 2005 at 06:34:21

Are they all subdirectories of another folder? If so then open the closest root of the directory in Windows Explorer.

For example; let's say they are all in My Documents and the path is:
C:\Documents and Settings\Mint\My Documents

Then go to Start, Run, cmd and it will open to the above directory.
At the command prompt type:
dir /ad >list.txt
hit Enter.
This will create a text file named "list" of all items in the directory that has the "Directory" attribute. You will find the .txt file in the same folder.

You can then open Excel and go to File, Open. Change to All file types and browse to the same folder to find it.

Hopefully you have opened a text file in Excel before. Otherwise just follow the prompts to get it open in Excel and then delete columns as needed.
Do save it as an Excel worksheet though versus a .txt file when prompted.

Regards,
Bryan


Report •

#3
April 5, 2005 at 06:50:44

Nice solution Brian... i'd never thought about it.... thanks for the tip

Report •

Related Solutions

#4
April 5, 2005 at 07:13:03

wow u guys are amazing :) keep up the excellent work

Ths Jon


Report •

#5
April 5, 2005 at 07:34:02

C:\Documents and Settings\Mint\Week-039 here is the directory i cant seem to get it too work ???? :( what do i type ?

ive got c:\documents and settings\Mint>

do i have to put
c:\documents and settings\Mint>Week-039/ad >list.txt

this is not correct as it keeps coming up
'week-039' is not recognised as internal or external command

what am i doin wrong ?


Report •

#6
April 5, 2005 at 08:23:17

Here's an awesome little freeware tool that will do it all for you

Directory Printer


Report •

#7
April 5, 2005 at 08:26:04

like Brian told u, tape , where u're located in ur dos session , for example C:\Documents and Settings\Mint\Week-039 , dir/>ad list.txt (where "list" means the name of the file u'll get.

Report •

#8
April 5, 2005 at 10:10:26

If
C:\Documents and Settings\Mint\Week-039 is the directory that contains all of the other sub-directories that you want to list the names of then simply navigate to that directory with Windows Explorer so that it displays all of the items/folders you are wanting a list of.

Then, go to Start, Run, cmd and hit Enter.
In doing so you will already be at that directory and at that point type exactly:
dir /ad >dirlist.txt
Hit Enter
(there is a space between dir and / with another between /ad and >)
The command states to list the current directory but only those with the attribute of "d" for directory (a/k/a foldername) and send the output to a text file named "dirlist.txt" and since no Save to location is specified it will automatically save it to the current directory which is
C:\Documents and Settings\Mint\Week-039.

TIP: It is a good idea to not use special characters within file or folder names such as hyphens, periods, commas and the like. WinXP is ok with the hyphen but if you get in the habit of not using them (or spaces) then you will never have a problem with them either in Windows or any application.
Week039 is better than Week 039 or Week-039.

Regards,
Bryan


Report •

#9
April 6, 2005 at 01:20:32

Well guys thxs for all your help sorry i didnt respond sooner but bin at work :)

Once again youve done it for me thxs :)


Report •


Ask Question