|
|
|
|
|
|
|
![]() |
#1 |
Shut up brain, or I'll stab you with a Q-tip!
|
DOS command to...
does anybody know what id the DOS command to list all files from a dir?
I really need that |
![]() |
![]() |
![]() |
#2 |
If you don’t take a chance the Angels won’t dance
|
/L
|
![]() |
![]() |
![]() |
#3 |
Where there's a will, I want to be in it.
|
Been a while, but
dir or dir/p to list a page at a time.
__________________
Submit your free sites to Free Sex Pics |
![]() |
![]() |
![]() |
#4 |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
Does DOS have man pages like *nix does?
|
![]() |
![]() |
![]() |
#5 |
Shut up brain, or I'll stab you with a Q-tip!
|
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 |
![]() |
![]() |
![]() |
#6 | |
If something goes wrong at the plant, blame the guy who can't speak English
Join Date: Oct 2003
Location: Florida
Posts: 38
|
Quote:
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.. |
|
![]() |
![]() |
![]() |
#7 |
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. ![]() |
![]() |
![]() |
![]() |
#8 |
Shut up brain, or I'll stab you with a Q-tip!
|
thx for your help!
you have helped me a lot! |
![]() |
![]() |
![]() |
|
|