Sponsor for PC Pals Forum

Author Topic: Dos question  (Read 3133 times)

Offline fizic

  • New Member
  • *
  • Posts: 4
Dos question
« on: November 01, 2007, 14:48 »
It's years since I used Dos & have totally forgotten everything.  :dunno:

I used to know a Dos code for listing files on my pc in text format so that it could be opened into a spreadsheet for editting. As I recall it listed all directories in a particular field and subs and roots.

I have a million files which need colating and I really don't want to have to create a list by hand.  :cry:

I'd be really grateful is someone could help me out.

Cheers

fizic  :crazy:

Offline Rik

  • Former Admin
  • *****
  • Posts: 26506
  • Ceud mille failte
Re: Dos question
« Reply #1 on: November 01, 2007, 15:24 »
If you want to do it from within Windows, pick up a copy of DirPrin from:

http://www.karenware.com/

Stretching my memory a bit, but wasn't the DOS command dir C:\*.* /s >C:\temp\files.txt

which would list all files in all folders on drive C, copying the output to the file C:\temp\fliles.txt.
Slainthe!

Rik

Offline sam

  • Administrator
  • *****
  • Posts: 19977
Re: Dos question
« Reply #2 on: November 01, 2007, 15:55 »
hmmm, i cant remember too much about dos - in linux it would be easy as writing ls > output.txt but I'm not sure about dos, i'll have a play when I get onto a windows machine... but maybe someone else does
- sam | @starrydude --

Offline sam

  • Administrator
  • *****
  • Posts: 19977
Re: Dos question
« Reply #3 on: November 01, 2007, 15:55 »


Stretching my memory a bit, but wasn't the DOS command dir C:\*.* /s >C:\temp\files.txt

which would list all files in all folders on drive C, copying the output to the file C:\temp\fliles.txt.


sounds right to me...
- sam | @starrydude --

Offline fizic

  • New Member
  • *
  • Posts: 4
Re: Dos question
« Reply #4 on: November 02, 2007, 09:44 »
Yes it was in windows and that piece of code seems to be familiar.

Thanks alot for the help & have a great weekend.

fizic


Show unread posts since last visit.
Sponsor for PC Pals Forum