Articles

file count using dos

September 29, 2005 at 11:16:16
Specs: XP pro Ver 2002 SP2, dual Xeon 3.4 GHz/ 3GB RA

Greetings,
I am looking for something in dos that will count the number of files in a directory without listing all the files.
Something like <ls | wc> in linux.

Thanks for any help or suggestions.


See More: file count using dos

Report •


#1
September 29, 2005 at 12:01:17

Since there is no DOS in XP, you may have better luck posting in the Disk Op. System Forum.

Soylent Green is PEOPLE!!!


Report •

#2
September 29, 2005 at 12:23:20

Dir [Pathname] | Find "File"

Report •

#3
September 29, 2005 at 12:26:21

Ack dont post in the disk op they will just send you back here and yell and scream at you for a hour about posting a XP Q in their forum.

disk op sys is DOS.

As Jen said DOS does not exist in XP. CMD does which is probably what you are refering to.

Someone may be able to create a BAT for you to do what you want or point you in the right direction.


Report •

Related Solutions

#4
September 29, 2005 at 12:51:31

"Ack dont post in the disk op they will just send you back here and yell and scream at you for a hour about posting a XP Q in their forum."

Nope - the post would just be removed.

XP or Programming forums are the most appropriate - otherwise try the Linux forum (they use a command line as well)

We live in a society exquisitely dependent on science and technology, in which hardly anyone knows anything about science and technology


Report •

#5
September 29, 2005 at 13:11:39

There is no MS-DOS in XP, are you dual-booting ??

Could try XP's NT Command Prompt I think you should have that, ie START - RUN - CMD ........

http://www.ss64.com/nt/

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx

Actually UNIX, Solaris and VMS also use Line Command Prompt as well.


Report •

#6
September 29, 2005 at 13:13:40

Try this site. Further down the page they teel you how to count without displaying the file names.

Bat File To List and Count Files:
Explained with the Newbie in Mind


98% of the population is asleep. The other 2% are staring around in complete amazement, abject terror, or both.


Report •


Ask Question