Computing.Net > Forums > Windows NT > NT Batch : Using FOR command to parse

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.

NT Batch : Using FOR command to parse

Reply to Message Icon

Name: Chris_P
Date: March 4, 2002 at 12:15:16 Pacific
Comment:

Does anyone out there have a batch program using the for command to parse a file? This is specifically what I'm trying to do. 1.) run 'WinMSD /s /f' 2.) Use the find command to locate "Local - " which displays only local drives. 3.) Add the Free space of local drives then add the Total Space of free drives.

Sample Data:
C:\ (Local - NTFS) Total: 8,241,312 KB, Free: 5,057,380 KB
G:\ (Local - NTFS) data Total: 20,040,700 KB, Free: 7,571,480 KB

Sample Command: (Start of it)
TYPE %COMPUTERNAME%.TXT | FIND "Local -"

HELP!!!!



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Slow Browsing in NT 4.0 upgrade



Post Locked

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


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: NT Batch : Using FOR command to parse

AT command to perform reboot www.computing.net/answers/windows-nt/at-command-to-perform-reboot/15198.html

Batch files and batch commands www.computing.net/answers/windows-nt/batch-files-and-batch-commands/1297.html

NT Server 4.0 command line reboot www.computing.net/answers/windows-nt/nt-server-40-command-line-reboot/1414.html