Greenguy's Board


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2004-06-16, 11:56 AM   #1
pf69.com
Shut up brain, or I'll stab you with a Q-tip!
 
pf69.com's Avatar
 
Join Date: Apr 2003
Location: Porto Alegre - Brasil
Posts: 114
Send a message via ICQ to pf69.com
DOS command to...

does anybody know what id the DOS command to list all files from a dir?

I really need that
__________________
Pf69Tutorials.info
Some fo my blogs: Pukka BDSM - All Chubby - She’s a He!
pf69.com is offline   Reply With Quote
Old 2004-06-16, 12:06 PM   #2
Surfn
If you don’t take a chance the Angels won’t dance
 
Surfn's Avatar
 
Join Date: Aug 2003
Location: Earth on occasion
Posts: 8,812
Send a message via ICQ to Surfn
/L
__________________

Surfn's Links Are you a partner?

Surfn is offline   Reply With Quote
Old 2004-06-16, 01:39 PM   #3
spacemanspiff
Where there's a will, I want to be in it.
 
spacemanspiff's Avatar
 
Join Date: Aug 2003
Location: Looz-e-anna
Posts: 1,015
Send a message via ICQ to spacemanspiff
Been a while, but

dir

or

dir/p

to list a page at a time.
__________________
Submit your free sites to Free Sex Pics
spacemanspiff is offline   Reply With Quote
Old 2004-06-16, 01:58 PM   #4
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Does DOS have man pages like *nix does?
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2004-06-16, 03:55 PM   #5
pf69.com
Shut up brain, or I'll stab you with a Q-tip!
 
pf69.com's Avatar
 
Join Date: Apr 2003
Location: Porto Alegre - Brasil
Posts: 114
Send a message via ICQ to pf69.com
its not just to list it is also to write on an .txt file

I know there is a way to do so but I dont rememeber how
__________________
Pf69Tutorials.info
Some fo my blogs: Pukka BDSM - All Chubby - She’s a He!
pf69.com is offline   Reply With Quote
Old 2004-06-16, 04:02 PM   #6
DavidM
If something goes wrong at the plant, blame the guy who can't speak English
 
Join Date: Oct 2003
Location: Florida
Posts: 38
Quote:
Originally posted by pf69.com
its not just to list it is also to write on an .txt file

I know there is a way to do so but I dont rememeber how
Still not sure exactly what you want?

dir <directory name here or blank for current> > <Name of file>

example:

dir C:\WINNT > C:\LOGS\FILELIST1.TXT

will redirect the output from the directory listing of C:\WINNT to the textfile C:\LOGS\FILELIST1.TXT

Is this what you want or do you want it prettied up or something?

edit: I guess I should add this... Doing the above will write over whatever existed previously in that file. If it does not exist, it will be created if possible.

If you want to append it (not overwrite) use '>>' in place of '>'.

Btw, if the header or summary bugs you, use 'dir /B', this will only list the files and directories without all the extra stuff in many DOS versions.

example:

dir /B >> LOG2.TXT

Also, for cleo, 'HELP <command name>' is basically the unix equivalent to 'man' in DOS. Though far inferior.

I'm surprised I remember this stuff anymore. Wow.

Last edited by DavidM; 2004-06-16 at 04:10 PM..
DavidM is offline   Reply With Quote
Old 2004-06-16, 04:23 PM   #7
DavidM
If something goes wrong at the plant, blame the guy who can't speak English
 
Join Date: Oct 2003
Location: Florida
Posts: 38
And.... lol

If you need to list only files and not use directories, try using the '/a-d' switch.

Example:

dir C:\ /a-d /b > C:\LOGS\FILELIST

This one I actually had to look up though I admit.
DavidM is offline   Reply With Quote
Old 2004-06-16, 08:17 PM   #8
pf69.com
Shut up brain, or I'll stab you with a Q-tip!
 
pf69.com's Avatar
 
Join Date: Apr 2003
Location: Porto Alegre - Brasil
Posts: 114
Send a message via ICQ to pf69.com
thx for your help!

you have helped me a lot!
__________________
Pf69Tutorials.info
Some fo my blogs: Pukka BDSM - All Chubby - She’s a He!
pf69.com is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:44 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc