file count using dos

Score
0
Vote Up
September 29, 2005 at 11:16:16 Pacific
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.


Reply ↓  Report •


#1
Vote Down
Score
-5
Vote Up
September 29, 2005 at 12:01:17 Pacific

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

Soylent Green is PEOPLE!!!


Reply ↓  Report •

#2
Vote Down
Score
5
Vote Up
September 29, 2005 at 12:23:20 Pacific

Dir [Pathname] | Find "File"

Reply ↓  Report •

#3
Vote Down
Score
1
Vote Up
September 29, 2005 at 12:26:21 Pacific

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.


Reply ↓  Report •

#4
Vote Down
Score
0
Vote Up
September 29, 2005 at 12:51:31 Pacific

"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


Reply ↓  Report •

Related Posts

#5
Vote Down
Score
-1
Vote Up
September 29, 2005 at 13:11:39 Pacific

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.


Reply ↓  Report •

#6
Vote Down
Score
0
Vote Up
September 29, 2005 at 13:13:40 Pacific

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.


Reply ↓  Report •

Reply to Message Icon Start New Discussion
« Uninstall AOL files USB won't auto-detect »

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.

Ask the Community!
Describe your Problem
Example: Hard Drive Not Detected on My PC