Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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,065 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,065 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,065 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