ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   File Directory (https://www.excelbanter.com/excel-programming/389671-file-directory.html)

Benz

File Directory
 
Hi ,

Ive seen numerous examples using a file directory to get file paths etc. But
I was wondering if there is code that will build a spreadsheet that lists
just the different folders and subfolders on a particular drive that the user
chooses. Any help would be appreciated.

Thank you,

Ben Z.

Tom Ogilvy

File Directory
 
Search google groups for this group and the dir command

http://tinyurl.com/2ys2vs

--
Regards,
Tom Ogilvy


"Benz" wrote:

Hi ,

Ive seen numerous examples using a file directory to get file paths etc. But
I was wondering if there is code that will build a spreadsheet that lists
just the different folders and subfolders on a particular drive that the user
chooses. Any help would be appreciated.

Thank you,

Ben Z.


Ron de Bruin

File Directory
 
I also like this simple way Tom

This in a .bat file

@echo off
dir %1 /-p /b /o:gn /s "%temp%\Listing.txt"
start notepad "%temp%\Listing.txt"
exit

You can add this option to the shortcut in Windows so you can run it for the active folder
Dave and Gord posted this I believe

I can't find the KB that show you how to add the shortcut to run the bat file in windows
I am sure that Dave can find it

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Tom Ogilvy" wrote in message ...
Search google groups for this group and the dir command

http://tinyurl.com/2ys2vs

--
Regards,
Tom Ogilvy


"Benz" wrote:

Hi ,

Ive seen numerous examples using a file directory to get file paths etc. But
I was wondering if there is code that will build a spreadsheet that lists
just the different folders and subfolders on a particular drive that the user
chooses. Any help would be appreciated.

Thank you,

Ben Z.


Benz

File Directory
 
Thanks Tom!

"Benz" wrote:

Hi ,

Ive seen numerous examples using a file directory to get file paths etc. But
I was wondering if there is code that will build a spreadsheet that lists
just the different folders and subfolders on a particular drive that the user
chooses. Any help would be appreciated.

Thank you,

Ben Z.


Dave Peterson

File Directory
 
I saved it in my .bat file after Gord posted it:

http://support.microsoft.com/default...EN-US;q272623&



Ron de Bruin wrote:

I also like this simple way Tom

This in a .bat file

@echo off
dir %1 /-p /b /o:gn /s "%temp%\Listing.txt"
start notepad "%temp%\Listing.txt"
exit

You can add this option to the shortcut in Windows so you can run it for the active folder
Dave and Gord posted this I believe

I can't find the KB that show you how to add the shortcut to run the bat file in windows
I am sure that Dave can find it

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm

"Tom Ogilvy" wrote in message ...
Search google groups for this group and the dir command

http://tinyurl.com/2ys2vs

--
Regards,
Tom Ogilvy


"Benz" wrote:

Hi ,

Ive seen numerous examples using a file directory to get file paths etc. But
I was wondering if there is code that will build a spreadsheet that lists
just the different folders and subfolders on a particular drive that the user
chooses. Any help would be appreciated.

Thank you,

Ben Z.


--

Dave Peterson

Chip Pearson

File Directory
 
You might be interested in my DirTree add-in, available free at
http://www.cpearson.com/excel/FolderTree.htm . It can list folders only or
folder and files, with various options and details.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting LLC
www.cpearson.com
(email on the web site)

"Benz" wrote in message
...
Hi ,

Ive seen numerous examples using a file directory to get file paths etc.
But
I was wondering if there is code that will build a spreadsheet that lists
just the different folders and subfolders on a particular drive that the
user
chooses. Any help would be appreciated.

Thank you,

Ben Z.




Ron de Bruin

File Directory
 
Thanks Dave



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Dave Peterson" wrote in message ...
I saved it in my .bat file after Gord posted it:

http://support.microsoft.com/default...EN-US;q272623&



Ron de Bruin wrote:

I also like this simple way Tom

This in a .bat file

@echo off
dir %1 /-p /b /o:gn /s "%temp%\Listing.txt"
start notepad "%temp%\Listing.txt"
exit

You can add this option to the shortcut in Windows so you can run it for the active folder
Dave and Gord posted this I believe

I can't find the KB that show you how to add the shortcut to run the bat file in windows
I am sure that Dave can find it

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm

"Tom Ogilvy" wrote in message ...
Search google groups for this group and the dir command

http://tinyurl.com/2ys2vs

--
Regards,
Tom Ogilvy


"Benz" wrote:

Hi ,

Ive seen numerous examples using a file directory to get file paths etc. But
I was wondering if there is code that will build a spreadsheet that lists
just the different folders and subfolders on a particular drive that the user
chooses. Any help would be appreciated.

Thank you,

Ben Z.


--

Dave Peterson



All times are GMT +1. The time now is 08:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com