How can I create a file that lists everything in a folder?

Koenigsegg

Banned
Jun 29, 2005
2,267
1
0
I have lots of pictures that I've uploaded and want to list of them all to create an HTML page with them..
 

Rookie

Golden Member
Jan 27, 2000
1,178
0
76
in DOS go to the directory and type dir > myfiles.txt

Edit: Syntax and Triple teamed!
 

Rumpltzer

Diamond Member
Jun 7, 2003
4,815
33
91
There are powertoys that will allow you to do this using Windows. I have it installed on my machine here at work.

Open directory
Select files that you want
Right-click, Send To, Clipboard as Name

Don't have the powertoys? Google

Good luck!
 

FoBoT

No Lifer
Apr 30, 2001
63,084
15
81
fobot.com
Originally posted by: Rumpltzer
There are powertoys that will allow you to do this using Windows.

dir /b > txt.txt is windows :confused:

i am not sure what it is in *nix

does the OP have windows or *nix or apple? what makes you think it isn't windows?
 

randomlinh

Lifer
Oct 9, 1999
20,846
2
0
linh.wordpress.com
ls *plus whatever options* > filename

wouldn't that work for the *nix?


but i would not use any of these methods for making an html page.. if windows, use the html album generator from powertoys.. if *nix... have fun :p