Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

file directory to list


  • Please log in to reply

#1
washout

washout

    Member

  • Member
  • PipPip
  • 93 posts
basically, i want a list of all the folders in a directory.
what i have done in the past is Print Screen, saved it to a JPG, and just printed it.
is there anyway to take a directory, and get a list off the folders in it, in a TXT file ??
  • 0

Advertisements


#2
1101doc

1101doc

    Trusted Tech

  • Retired Staff
  • 909 posts
You may find this of interest: http://www.internetf...s/IF01987_C.htm
  • 0

#3
Ztruker

Ztruker

    Member 5k

  • Technician
  • 7,091 posts
Once caveat for using the dir command, you need to have Folder Options set to show all files, including hidden ones.

Open Control Panel then Folder Options and click on the View tab.

Select "Show hidden files and folders"
Uncheck "Hide extensions for known file types"
Uncheck "Hide protected operating system files (recommended)"
  • 0

#4
1101doc

1101doc

    Trusted Tech

  • Retired Staff
  • 909 posts
I also should have mentioned that the "copy/paste" right click functions for a command box are available only by right clicking the top border and chosing from the Edit submenu.
  • 0

#5
Ztruker

Ztruker

    Member 5k

  • Technician
  • 7,091 posts
I use cut and paste from the command prompt a lot so I have set it to always be available.

Click on Start, Programs, Accessories.
Right click on Command Prompt and select Properties.
Click on the Options tab then check Quick Edit mode under Edit Options.
Click Apply then OK.
Right click on Command Prompt again and select Send to then chose Desktop as the target.



That will place a Command Prompt Icon on the desktop and any time you click it, Edit mode will be active for cut and paste. You can also change the layout to increase the available rows and columns if you want. Move the icon to the Quick Launch bar for single click use :)
  • 0

#6
washout

washout

    Member

  • Topic Starter
  • Member
  • PipPip
  • 93 posts
ha that worked great.
surprised theres not a GUI method to do this, it seems common.
in any case, i have what i need.

thanks!
  • 0

#7
Ztruker

Ztruker

    Member 5k

  • Technician
  • 7,091 posts
You can setup a QUASI GUI method as follows.

Create a batch file with the following content:

dir /a /-p /o:gen >"%homepath%\desktop\filelisting.txt"
notepad "%homepath%\desktop\filelisting.txt"
del "%homepath%\desktop\filelisting.txt
"

Open Windows Explorer, click Tools, then click Folder Options.
Click the File Types tab, and then click on (None) Folder.
Click the Advanced button and then click New to open the New Action window.

In the Action box, type Create File List.
Browse to the location where the .bat file you created is located, select it and it will be the Application Used to Perform Action.
Click OK as needed to finish.

Now open Windows Explorer. Right click on a folder you want the contents of and select Create File List.

Poof, the list appears in Notepad. You can edit it or print it or whatever, but if you want to keep it you need to save it under a different name as the batch file deletes it when you close Notepad.
  • 0

#8
1101doc

1101doc

    Trusted Tech

  • Retired Staff
  • 909 posts
Thanks Ztruker! Always nice to learn more.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP