Batch file - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 02-10-2006, 11:11 AM   #1 (permalink)
Newb Techie
 
Join Date: Feb 2006
Posts: 7
Default Batch file

Hi guys,

Ive recently just joined a new company, I'm quite young and am new to batch files. thus the reason for my thread

Can you help me create a batch file that would check the file space on a server/computer and then if below a certain amount, email a certain user.

Is this possible?

Is there a better/ easier way?

Thanks,

Marc. :beard:
__________________

Spitwolf is offline  
Old 02-10-2006, 11:59 AM   #2 (permalink)
Master Techie
 
Join Date: Oct 2003
Posts: 2,258
Default

Batch isn't the way for this. You will want to do some simple scripts that can do this. VBS and perl are both pretty simple, and capable for this. VBS is built into windows, if that is what your on. There are some others if your in Linux or Unix.

If you find some miiny programs, then you can use batch to automate that, but it's not really a good way to do it. Not a lot of functionality in batch.

Give some info on your environment, and I'll see what I can come up with...
__________________

Inaris is offline  
Old 02-10-2006, 01:49 PM   #3 (permalink)
It's all just 1s and 0s
 
office politics's Avatar
 
Join Date: Jan 2004
Location: in the lab
Posts: 6,555
Send a message via MSN to office politics
Default

or you could setup a performance alert in admin tools | performance to monitor the free disk space. When the free disk space reaches a certain percentage, set an alert execute whatever command you specify, send a network message to a specific ip, start a counter log, or log an event in event viewer.

How to create and configure performance alerts in Windows Server 2003

How to set up administrative alerts in Windows XP
office politics is offline  
Old 02-10-2006, 09:32 PM   #4 (permalink)
Techie Beyond Description
 
Osiris's Avatar
 
Join Date: Jan 2005
Location: Kentucky
Posts: 36,817
Send a message via ICQ to Osiris Send a message via AIM to Osiris Send a message via MSN to Osiris Send a message via Yahoo to Osiris
Default

http://www.sysinternals.com/utilities/du.html
__________________
Osiris is offline  
Old 02-13-2006, 04:52 AM   #5 (permalink)
Newb Techie
 
Join Date: Feb 2006
Posts: 7
Default

Hi guys,

Thanks for your help. Unfortunately we're on 2k server not 2k3.

I'll try the windows xp alerts when I get a chance, also that du program looks quite promising.

Just recently our email server went down because someone sent a file so big that it crashed the server. It's a pretty crappy system where our database saves the file each on each computer, so it multiplied the file about 10 times. Either that or the user sent the email 10 times

Thanks for your help!

regards,

Marc :beard:
Spitwolf is offline  
Old 02-13-2006, 05:02 AM   #6 (permalink)
Banned
 
Join Date: Jul 2004
Posts: 808
Default

Quote:
Originally posted by Spitwolf
Hi guys,

Thanks for your help. Unfortunately we're on 2k server not 2k3.

I'll try the windows xp alerts when I get a chance, also that du program looks quite promising.

Just recently our email server went down because someone sent a file so big that it crashed the server. It's a pretty crappy system where our database saves the file each on each computer, so it multiplied the file about 10 times. Either that or the user sent the email 10 times

Thanks for your help!

regards,

Marc :beard:
its a pretty crappy system!
__________________

derrmc is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 09:17 AM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.