Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default 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.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default 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.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default 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.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default 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


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default 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.



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
File directory TimB[_2_] Excel Programming 3 February 28th 07 02:06 AM
file save error: the file or directory cannot be created dublg Excel Discussion (Misc queries) 1 September 25th 06 07:07 PM
Excel should let me sort the file directory when saving a file Beanee70 Excel Discussion (Misc queries) 0 March 14th 06 07:03 AM
Combine all text file in directory into one file. Rich[_19_] Excel Programming 8 January 21st 04 04:09 PM
get path - save new file - same sub-directory as existing file tegger Excel Programming 2 October 21st 03 10:45 AM


All times are GMT +1. The time now is 07:53 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"