Computing.Net > Forums > Windows XP > file count using dos

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

file count using dos

Reply to Message Icon

Name: Shodan
Date: September 29, 2005 at 11:16:16 Pacific
OS: XP pro Ver 2002 SP2
CPU/Ram: dual Xeon 3.4 GHz/ 3GB RA
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: Jennifer SUMN
Date: September 29, 2005 at 12:01:17 Pacific
Reply:

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

Soylent Green is PEOPLE!!!


0

Response Number 2
Name: IVO
Date: September 29, 2005 at 12:23:20 Pacific
Reply:

Dir [Pathname] | Find "File"


0

Response Number 3
Name: johns3
Date: September 29, 2005 at 12:26:21 Pacific
Reply:

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.


0

Response Number 4
Name: jboy
Date: September 29, 2005 at 12:51:31 Pacific
Reply:

"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


0

Response Number 5
Name: plainandsimple
Date: September 29, 2005 at 13:11:39 Pacific
Reply:

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.


0

Related Posts

See More



Response Number 6
Name: Zenith
Date: September 29, 2005 at 13:13:40 Pacific
Reply:

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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Uninstall AOL files USB won't auto-detect



Post Locked

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


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: file count using dos

Restore file using DOS www.computing.net/answers/windows-xp/restore-file-using-dos-/114483.html

Using DOS Batch File in Windows XP www.computing.net/answers/windows-xp/using-dos-batch-file-in-windows-xp/23275.html

Need batch program to convert XLS file to CSV www.computing.net/answers/windows-xp/need-batch-program-to-convert-xls-file-to-csv/179215.html