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
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?
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.
Summary: Hello, I have a file (test.txt) and I need to add text as "wait" on alternate line on above test.txt file. Please some one help me how to do it in batch file. Example: TEST.TXT Stephen Alex Vince Rich...
Summary: Hi, I am developing a Batch file to accept values at the the ime of execution and then call respective batch files based on the input given by the user, I actually u have developed a small script t...
Summary: What is the command to have the batch file auto answer questions? eg. I am writing a backup script and if something is changed it wants to know if I want to overwrite it. I just want it to answer y...