The Steel Guitar Forum Store 

Post new topic Create Directory List file ?
Reply to topic
Author Topic:  Create Directory List file ?
Gary Pederson

 

From:
Van Nuys, Ca.
Post  Posted 13 May 2002 10:17 pm    
Reply with quote

I have been looking for a way to create a txt file which contains all of the file names under a selected directory on my Windows ME pc. Thanks for any suggestions.

Gary
View user's profile Send private message Send e-mail

Jim Smith


From:
Midlothian, TX, USA
Post  Posted 14 May 2002 4:02 am    
Reply with quote

I'm not familiar with ME but it "might" be the same as my Windows 2000 box. Start a command window (DOS prompt) and cd to the directory you want, such as "cd c:\mydir". Type "dir /?" which will put the available parameters on the screen. If they scroll off the screen add "| more" to the command. "|" is the pipe command, located above the "\" on most keyboards. So that command would be "dir /? | more".

If you just want the filenames with no size or other info, and your OS supports it, do "dir /b > dir.txt". This will print the filenames to a text file named "dir.txt". This file should be placed somewhere other than the directory you are in to prevent it from being added to the list. If you want the files in subdirectories under the current directory, add "/s". Then the command would be something like "dir /b /s > c:\dir.txt".
View user's profile Send private message Send e-mail

Gary Pederson

 

From:
Van Nuys, Ca.
Post  Posted 14 May 2002 4:05 pm    
Reply with quote

Thanks a bunch Jim. Your suggestion did the trick. A couple of extra things I did was to temporarily rename directory to eliminate an embedded blank in order to get the cd command to work, & added /on to dir command to get file sorted by filename.
BTW, after I brought up the dos prompt window I expanded it to full screen. If I exit it & then re-open it, it is still full screen. If I re-boot & open it is full screen. Would you happen to know how to resize it?

Gary
View user's profile Send private message Send e-mail

Jim Smith


From:
Midlothian, TX, USA
Post  Posted 14 May 2002 4:33 pm    
Reply with quote

If you had put double quotes around the directory name, you wouldn't have had to rename it.

The DOS prompt window defaults to opening to the size and position it was the last time it was closed. So to fix it, open the DOS prompt, resize it the way you want, then close it. When you open it again it "should" be the size you left it at. If that doesn't work, right-click on the title bar, select properties, and set the size you want there.
View user's profile Send private message Send e-mail

Gary Pederson

 

From:
Van Nuys, Ca.
Post  Posted 14 May 2002 4:50 pm    
Reply with quote

Thanks a bunch Jim. Your suggestion did the trick. A couple of extra things I did was to temporarily rename directory to eliminate an embedded blank in order to get the cd command to work, & added /on to dir command to get file sorted by filename.
BTW, after I brought up the dos prompt window I expanded it to full screen. If I exit it & then re-open it, it is still full screen. If I re-boot & open it is full screen. Would you happen to know how to resize it?

Gary
View user's profile Send private message Send e-mail

Mel Culbreath

 

From:
Waynesville, NC, USA
Post  Posted 14 May 2002 7:23 pm    
Reply with quote

Hi Gary,

If you use DOS much you might want to add this line to your autoexec.bat file:

SET DIRCMD=/O/P

Then, each time you issue the DIR command it will cause the directories and files to be alphabetized and paused one screen at a time. By pressing any key the next screenfull will scroll up.

Ain't DOS fun?

Mel
View user's profile Send private message Send e-mail

Everett Cox

 

From:
Marengo, OH, USA (deceased)
Post  Posted 14 May 2002 10:15 pm    
Reply with quote

Gary-- I just emailed you a small utility which does the job better and with more style than the old DOS commands.

It works very well, from within Windows, allows file filtering, multiple folder selection, and some formatting options. If anyone else wants it, let me know. --Everett
View user's profile Send private message Send e-mail

Gary Pederson

 

From:
Van Nuys, Ca.
Post  Posted 15 May 2002 1:07 am    
Reply with quote

Jim - I found that I could resize my full screen dos window with alt+enter.

Mel- Thanks for the suggestion. Dos ain't much fun when you only use it maybe once every 5 yr. & have to relearn each time:-)
View user's profile Send private message Send e-mail

Jim Smith


From:
Midlothian, TX, USA
Post  Posted 15 May 2002 5:40 am    
Reply with quote

Yes, Alt-Enter lets you toggle between full screen and windowed. Accessing properties allows you to customize the size and more.

For example, I set my buffer size to 80x300 so I can scroll back if I need to see previous information. I set the window size to 80x50 so I can see more on the screen at a time. I also set it to insert mode (like a word processor) so typing doesn't overwrite, and enable quick edit mode so I can copy quickly from the command prompt.
View user's profile Send private message Send e-mail


All times are GMT - 8 Hours
Jump to:  

Our Online Catalog
Strings, CDs, instruction,
steel guitars & accessories

www.SteelGuitarShopper.com

Please review our Forum Rules and Policies

Steel Guitar Forum LLC
PO Box 237
Mount Horeb, WI 53572 USA


Click Here to Send a Donation

Email admin@steelguitarforum.com for technical support.


BIAB Styles
Ray Price Shuffles for
Band-in-a-Box

by Jim Baron
HTTP