dos command?

  • Thread starter Thread starter steve
  • Start date Start date
S

steve

hello, im not sure where to post this, so i thought i`d try here.
i need to list all the contents of one of my drives and save it to a text
file. i know this can be done from dos, but i cant remember how to do it.
can anyone help?
thanx

steve
 
steve said:
hello, im not sure where to post this, so i thought i`d try here.
i need to list all the contents of one of my drives and save it to a
text file. i know this can be done from dos, but i cant remember how
to do it. can anyone help?
thanx

Start|Run|cmd|
At the command prompt type CD C:\
Then type: DIR /s > list.txt

The output, list.txt will be found in the root of C:
 
s.heenan wrote:
"Start|Run|cmd|
At the command prompt type CD C:\
Then type: DIR /s > list.txt"



thanx, that worked, but is there a way to have just the filenames and not
all the numbers times and dates that come before the file names?

cheers

steve
 
thanx, that worked, but is there a way to have just the filenames and not
all the numbers times and dates that come before the file names?

"dir /?" is your friend
 
Been wondering about this myself. Thanks for the directions.

Now heres something I found odd when doing it. For somereason when in the
command prompt, it wouldnt let me change from my c: drive to my d: drive.
Anyone out there have an idea why?
 
Azaran2003 said:
Been wondering about this myself. Thanks for the directions.

Now heres something I found odd when doing it. For somereason when in
the command prompt, it wouldnt let me change from my c: drive to my
d: drive. Anyone out there have an idea why?

No DOS drivers installed for your CDROM drive? (Assuming D: is a CDROM
drive). If it isn't a CDROM then maybe the drive is too big for the BIOS to
recognize properly but the OS picks it up on load-up. <shrug>. It's a start.
 
In message <[email protected]>
Been wondering about this myself. Thanks for the directions.

Now heres something I found odd when doing it. For somereason when in the
command prompt, it wouldnt let me change from my c: drive to my d: drive.
Anyone out there have an idea why?

What operating system?
 
Sorry I should have been a bit more clear in my first post. I"m running XP Pro,
and the D drive is my second hard drive. I was trying to use the command to
list out my Mp3's.

I know the original question was for DOS but I assumed the directions (and
yeah, I could have just gone dumb on this one) were for a NT based system,
since I dont recall using the CMD command for a dos prompt in win9x.

~A
 
Sorry I should have been a bit more clear in my first post. I"m running XP Pro,
and the D drive is my second hard drive. I was trying to use the command to
list out my Mp3's.

I know the original question was for DOS but I assumed the directions (and
yeah, I could have just gone dumb on this one) were for a NT based system,
since I dont recall using the CMD command for a dos prompt in win9x.

~A

Yes, NT based, for win9x it was "command" instead of "cmd".
 
Back
Top