![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Extract list of sub-folders in a folder I'd like to be able to get a list of all the folders contained in another folder into another program, say Excel. I found an Excel macro that will list all the files in a given folder, but it does not list the folders in that folder. Alternatively, a print-out of the folders would be better than nothing, although I'm looking for something better than screen shots, for which I'll need numerous shots to print everything (ex. 200 folders). |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Extract list of sub-folders in a folder On Tue, 07 Aug 2007 15:52:02 -0700, Ken Meek <Ken <Meek@discussions.microsoft.com>> wrote: > I'd like to be able to get a list of all the folders contained in another > folder into another program, say Excel. I found an Excel macro that will > list all the files in a given folder, but it does not list the folders in > that folder. Alternatively, a print-out of the folders would be better > than > nothing, although I'm looking for something better than screen shots, for > which I'll need numerous shots to print everything (ex. 200 folders). I used to have a program that would print "complete" directory contents in a simple, straightforward way. It was called "Karen's directory printer" or something very close to that. Try "SoftPedia.com" and do a search for "Karen's". Should find it, if it's there. Hope this helps, Fred |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Extract list of sub-folders in a folder Fred - thank you! I found Karen's Directory Printer, downloaded and installed it. There are many options and I haven't explored them all yet, but I'm sure it will do what I need, and then some. Thank you very much! "Fred B." wrote: > On Tue, 07 Aug 2007 15:52:02 -0700, Ken Meek <Ken > <Meek@discussions.microsoft.com>> wrote: > > > I'd like to be able to get a list of all the folders contained in another > > folder into another program, say Excel. I found an Excel macro that will > > list all the files in a given folder, but it does not list the folders in > > that folder. Alternatively, a print-out of the folders would be better > > than > > nothing, although I'm looking for something better than screen shots, for > > which I'll need numerous shots to print everything (ex. 200 folders). > > > I used to have a program that would print "complete" directory contents in > a simple, straightforward way. It was called "Karen's directory printer" > or something very close to that. Try "SoftPedia.com" and do a search for > "Karen's". Should find it, if it's there. > > Hope this helps, > > > Fred > |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Extract list of sub-folders in a folder You're welcome. Regards -- Of all the things I've lost, I miss my mind the most! "Ken Meek" <KenMeek@discussions.microsoft.com> wrote in message news:24FA14EE-F1DD-4064-AC04-DDF834D571A3@microsoft.com... > Fred - thank you! I found Karen's Directory Printer, downloaded and > installed it. There are many options and I haven't explored them all yet, > but I'm sure it will do what I need, and then some. Thank you very much! > > "Fred B." wrote: > >> On Tue, 07 Aug 2007 15:52:02 -0700, Ken Meek <Ken >> <Meek@discussions.microsoft.com>> wrote: >> >> > I'd like to be able to get a list of all the folders contained in >> > another >> > folder into another program, say Excel. I found an Excel macro that >> > will >> > list all the files in a given folder, but it does not list the folders >> > in >> > that folder. Alternatively, a print-out of the folders would be better >> > than >> > nothing, although I'm looking for something better than screen shots, >> > for >> > which I'll need numerous shots to print everything (ex. 200 folders). >> >> >> I used to have a program that would print "complete" directory contents >> in >> a simple, straightforward way. It was called "Karen's directory printer" >> or something very close to that. Try "SoftPedia.com" and do a search for >> "Karen's". Should find it, if it's there. >> >> Hope this helps, >> >> >> Fred >> |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Extract list of sub-folders in a folder If you want the listing in text so you can loadandmanipulate it in excel try; dir /ad /s /b > c:\dir.txt Regards Mark Dormer "Ken Meek" <Ken Meek@discussions.microsoft.com> wrote in message news:26320060-0309-4D03-8654-780E5088B8EA@microsoft.com... > I'd like to be able to get a list of all the folders contained in another > folder into another program, say Excel. I found an Excel macro that will > list all the files in a given folder, but it does not list the folders in > that folder. Alternatively, a print-out of the folders would be better > than > nothing, although I'm looking for something better than screen shots, for > which I'll need numerous shots to print everything (ex. 200 folders). |
My System Specs![]() |
| | #6 (permalink) |
| | Re: Extract list of sub-folders in a folder Hi, Ken. There is a KB article explaining how to create a Print Directory command for Windows XP. It doesn't work in Vista as outlined there because the File Folder | File Types screen does not exist in Vista. But all is not lost. A quick Google search finds at least a couple of ways to use the simple batch file created for WinXP to create a new SendTo option in Vista to do the same thing. (Google got nearly 1,000 hits for "printdir +vista", but this first one worked, so I didn't try the others.) First, see the KB article: How to add the Print Directory feature for folders in Windows XP http://support.microsoft.com/?kbid=321379 Then read this page to see how to adapt it for Vista: Another little Vista annoyance: Printing directory contents http://bxmedia.net/blog/wpmu/vftc/20...tory-contents/ I just tried it and it worked. ;<) But I chose to put the little PrintDir.bat file into a "neutral" location where I can use it from either WinXP or Vista; in my case, that is E:\regs\PrintDir.bat. Then I can browse to it when I'm ready to add it to my SendTo menu, as explained in the blog. RC -- R. C. White, CPA San Marcos, TX rc@grandecom.net Microsoft Windows MVP (Running Windows Live Mail beta in Vista Ultimate x64) "Ken Meek" <Ken Meek@discussions.microsoft.com> wrote in message news:26320060-0309-4D03-8654-780E5088B8EA@microsoft.com... > I'd like to be able to get a list of all the folders contained in another > folder into another program, say Excel. I found an Excel macro that will > list all the files in a given folder, but it does not list the folders in > that folder. Alternatively, a print-out of the folders would be better > than > nothing, although I'm looking for something better than screen shots, for > which I'll need numerous shots to print everything (ex. 200 folders). |
My System Specs![]() |
| | #7 (permalink) |
| | Re: Extract list of sub-folders in a folder Hi, again, Ken. Aw, what the heck! Rather than read those other references, just do this: 1. Using Notepad (or any other plain text editor), create a short file containing just this (just copy'n'paste): @echo off dir %1 /-p /o:gn > "%temp%\Listing" start /w notepad /p "%temp%\Listing" del "%temp%\Listing" exit 2. Save that text file wherever you like where it will be easily accessible, but out of your way. (My file is E:\regs\PrintDir.bat.) 3. Open the SendTo menu by pressing <Win>+R and typing (without the quotes): shell:sendto 4. In the SendTo folder that pops up in an Explorer window, right-click in a blank space on the right side and click New | Shortcut. 5. Browse to your PrintDir.bat file - or just type the full pathname into the box - then click Next. 6. Either accept the default name (PrintDir.bat - the name of the file), or type a better one (I called it "Print Directory"), then click Finish. 7. To use your new command to type a directory listing, just browse to the folder you want to list, right-click on it, and click SendTo | Print Directory. (Note that this will also print only the current folder, not the entire tree. To get the full directory tree, just add "/s" (no quotes) before the ">" in the first line of the text file. I've saved a second version of PrintDir.bat, called PrintDirS.bat, and created a second SendTo shortcut that calls that file.) 8. Get your printed listing from your printer. ;<) All that is basically what KB 321379 and the "Views from the Coop" blog said. Please report back with your experience if you use this so that we all can benefit. RC -- R. C. White, CPA San Marcos, TX rc@grandecom.net Microsoft Windows MVP (Running Windows Live Mail beta in Vista Ultimate x64) "Ken Meek" <Ken Meek@discussions.microsoft.com> wrote in message news:26320060-0309-4D03-8654-780E5088B8EA@microsoft.com... > I'd like to be able to get a list of all the folders contained in another > folder into another program, say Excel. I found an Excel macro that will > list all the files in a given folder, but it does not list the folders in > that folder. Alternatively, a print-out of the folders would be better > than > nothing, although I'm looking for something better than screen shots, for > which I'll need numerous shots to print everything (ex. 200 folders). |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| One of the folders disappeared in Folder List | Vista mail | |||
| Highlight in msg list and folders list | Vista mail | |||
| zip files automatically extract in vista temp folder! | Vista file management | |||
| Extract folder from dir path (String) | PowerShell | |||
| Error Event ID 11,Failed extract of third-party root list ? | Vista General | |||