Jump to content

Saving A Directory's Content To A Text Doc?


Recommended Posts

Can anyone tell me how I can list a directorys content to a text file, I have a directory on my Harddrive with thousands of ROMs, rather than type the names 1 by 1 on a text doc, I need an easy way to have them listed so I can show people what is available,

 

I think I explained it okay,

 

Any suggestions? :)

Link to comment
Share on other sites

Well this way is kind of ghetto and probably what you're not looking for, but here goes.

 

-Open command prompt and go to your rom directory

- do DIR

- Then right click and select all

- Then do CTRL-C

- And then paste into your favorite text editor

Link to comment
Share on other sites

ls > dir.txt

 

then

emacs dir.txt

 

or

vim dir.txt

 

you don't even have to "su root" !

Link to comment
Share on other sites

Is there a way to have the text file only get the long file names and not all that other information that you get with the dir command?

How about long file names with file size?

Copy-paste the entire command prompt window. Works for me anyways.

Edited by Agozer
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...