[Ham-Computers] RE: Counting Files

Hsu, Aaron [email protected]
Wed, 1 May 2002 10:50:27 -0700


In Windows:
  * Open the drive in question (e.g.  double-click the "C:" drive)
  * Make sure you're in the root folder
  * Click "Edit", "Select All" (or press <CTRL>-<A>)
  * Click "File", "Properties" (or right-click on any file, properties)
  * Wait for a minute while Windows calculates the number of files

To get a count of the files in a particular folder and it's sub-folders, right-click on the folder and select "Properties".

In DOS:
  * Change the default drive to the drive in question
  * CD to the root directory (type "CD \")
  * Do a "DIR /W /S"
  * DOS will start showing all the files in the root and all sub-dirs.
  * At the end, it will show the total number of files found.

If I remember correctly, older versions of CHKDSK from DOS 5.x and under also gives a file count.

NOTE:  There may be a difference between the Windows file count and the DOS file count.  DOS "DIR" command does not count "hidden" files.  Windows also does not count hidden files unless you have the "show all files" option turned on in the "View" settings.


73,

  - Aaron Hsu, NN6O


-----Original Message-----
From: Duane Fischer, W8DBF [mailto:[email protected]]
Sent: Tuesday, April 30, 2002 7:32 PM
To: [email protected]
Subject: [Ham-Computers] Counting Files



	
Hello All, 	
	
Is there any way to count the total number of files on a hard drive with either
a Windows or DOS command?	
	
I know it can be done by totaling up the files in each directory, plus those in
the root directory, but I was hoping there was a command to simplify this. 	
	
Thanks.	
	
Duane Fischer, W8DBF 	
_______________________________________________