Computing.Net > Forums > Windows NT > check disk usage in batch file

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.

check disk usage in batch file

Reply to Message Icon

Name: conrad ng
Date: November 13, 2003 at 20:10:15 Pacific
OS: Windows NT
CPU/Ram: PIII
Comment:

How can I check disk usage / available space in a batch file?




Sponsored Link
Ads by Google

Response Number 1
Name: uli_glueck
Date: November 26, 2003 at 09:13:56 Pacific
Reply:

What exactly do you want?
If you give more Details its easyer to help you.

uli


0

Response Number 2
Name: conradng
Date: November 27, 2003 at 18:32:16 Pacific
Reply:

I want to make a schedule batch job to check the disk usgae of local and remote computer. If the disk usage is more than 80%, an alert would be generated. I know that Windows Performance Monitor can do it but it is not a batch job. Is there anyway to do it as a batch job?


0

Response Number 3
Name: uli_glueck
Date: November 28, 2003 at 06:25:30 Pacific
Reply:

Hi again,
I just can give you listing which seeks out how many bytes are free.
I donīt know how to make an alert. sorry
Iīm sure someone in the DOS Forum can help you.

@echo off
dir >temp.txt
FOR /f "skip=2 delims=" %%a in ('find "Bytes frei" c:\temp.txt') do echo %%a >temp.txt


FOR /f "tokens=1-4 skip=2 delims= " %%a in ('find "." temp.txt') do echo %%a


(Bytes frei is the word you are seeking; I use a german version of windows. I think you need Bytes free if using an english windows.)

This filters out the line of the dir command where dir shows you the free space.

greetings
uli


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







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: check disk usage in batch file

How to add text in a batch File www.computing.net/answers/windows-nt/how-to-add-text-in-a-batch-file/23213.html

Accept value in Batch files on NT www.computing.net/answers/windows-nt/accept-value-in-batch-files-on-nt-/20537.html

Auto answer questions in batch files www.computing.net/answers/windows-nt/auto-answer-questions-in-batch-files/9448.html