Jump to content

Recommended Posts

Posted

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? :)

Posted

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

Posted

cool, that did it, I used dir/w

 

I would have done this but I didnt know you could copy from the command prompt window,

 

Cheers for taht ;)

Posted
cool, that did it, I used dir/w

 

I would have done this but I didnt know you could copy from the command prompt window,

 

Cheers for taht :o

As long as it works! ;)

Posted
Nice tip Mr K....thanks :D

Hehe, no problem dude. I'm down with all the ghetto tricks and methods.

Posted

There's an easier way.

 

in the command prompt, instead of copying and pasting the results. just pipe the output to a text file.

 

ex.

 

dir > rom_listing.txt

 

u now have a full listing in a txt file.

Posted

ls > dir.txt

 

then

emacs dir.txt

 

or

vim dir.txt

 

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

Posted (edited)
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

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...