PDA

View Full Version : How do I list files n stuffs?



senorblinky
9th February 2009, 12:34 PM
i just want a simple way to export the contents of my folders.
I have one external drive now, and it is basically dedicate for all my entertainment, it's extremely basic, i havethe following folders:
Comedy (comedy tours, comedy central, Funny MP3s etc)
E-Books (no manuals)
Games (not the stuff i am currently playing, but rather ISOs and cracks for future use)
Movies (movies, no categories, just all my movies, blam)
Music (again, no catergories, just 225GB of album folders)
Software (Drivers, hacks, cheats, patches etc)
TV Series (well done, you guessed it)

Now what i want to do, is EXPORT that into a text file, that will give me a tree of the folder contents, IE

H:\[-]Drobo[/-]External Drive\Entertainment\TV Series\My name is earl\Season 1\Earl goes to camp.MPG
H:\[-]Drobo[/-]External Drive\Entertainment\TV Series\My name is earl\Season 1\Earl eats a doughnut.MPG
H:\[-]Drobo[/-]External Drive\Entertainment\TV Series\My name is earl\Season 1\Season Finale.MPG
H:\[-]Drobo[/-]External Drive\Entertainment\TV Series\My name is earl\Season 2\Earl Rides again.MPG
H:\[-]Drobo[/-]External Drive\Entertainment\TV Series\My name is earl\Season 2\MNIE Epi 2.MPG

See what i mean?

stoke
9th February 2009, 12:41 PM
open a command prompt

type in :

dir /s "H:\External Drive\Entertainment\TV Series\* > H:\External Drive\MyList.txt

press enter

wait a while while it runs

go edit H:\External Drive\MyList.txt in notepad or something, all the files with their dates and stuff will be there, messy as all heck.

Then, if you want only the filenames, use :

dir /s /b "H:\External Drive\Entertainment\TV Series\* > H:\External Drive\MyList.txt

Then, if you want only the filenames, ordered by name, use :

dir /s /b /on "H:\External Drive\Entertainment\TV Series\* > H:\External Drive\MyList.txt

Cool?

TG
9th February 2009, 12:42 PM
Command prompt>>

H:

dir/b/s >> export.txt

stoke
9th February 2009, 12:59 PM
By the way :
> makes a new file every time.

>> appends to the existing file or makes a new one if none were there.

Voicy
9th February 2009, 01:04 PM
Pretty much what the nerds said.

EDIT: TG - It's dos, not a unix #, so I know my way around :hide:

senorblinky
9th February 2009, 02:07 PM
C:\> Deltree H
Mebbe?

Thanks chaps, didn't realise it was that easy.

TG
9th February 2009, 02:13 PM
Blinky, that would be rd /s /q h:\

Deltree doesn't exist in XP. :p

Voicy
9th February 2009, 02:16 PM
Blinky, that would be rd /s /q h:\

Deltree doesn't exist in XP. :p

blinky still uses file manager with win3.1. He's old skool like that.

senorblinky
9th February 2009, 02:52 PM
:varkie:

Sorry okes, i don't know these things hey.

Askari
9th February 2009, 06:37 PM
Wheres the pron folder????

Voicy
9th February 2009, 06:38 PM
Wheres the pron folder????

look under "...\Miscellaneous Printer Drivers\..."

Sheepy
9th February 2009, 07:14 PM
:confused: So what's the TV series folder for?

Tree is another useful command. and you can use the pipes for that too :)

ie..

Tree /f H:\ > H:\Tree.txt

Vortex
10th February 2009, 07:35 AM
:confused: So what's the TV series folder for?

Tree is another useful command. and you can use the pipes for that too :)

ie..

Tree /f H:\ > H:\Tree.txt

That's a nice cmd Sheepie - didn't know about that one!

Arbythep00nage
10th February 2009, 07:56 AM
I would want all of my stuff neatly organised in terms of file type etc soooo:
ls -lah | grep avi >> /list.txt

Ooooooh, oh I see you are non linuxers you say? pffft INFIDELS!!!!!!!!!
:D

Flatty
10th February 2009, 08:32 AM
F:\My Documents\My Pictures\Pron

Don't hack my computer now you perv!

Sheepy
10th February 2009, 08:55 AM
I would want all of my stuff neatly organised in terms of file type etc soooo:
ls -lah | grep avi >> /list.txt

Ooooooh, oh I see you are non linuxers you say? pffft INFIDELS!!!!!!!!!
:D

:ras: I keeeel you!

senorblinky
10th February 2009, 03:56 PM
Wheres the pron folder????


So what's the TV series folder for?



exactly that.


:D

senorblinky
10th February 2009, 03:57 PM
Dudes, give me sometihng i can copy and paste... i might be doing something wrong here :confused:

TG
11th February 2009, 08:54 AM
format H: