NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 11 12 13 14 15 … 56 Next »
Free disk space monitor

 
  • 0 Vote(s) - 0 Average
Free disk space monitor
Remco
Offline

Member

Posts: 152
Threads: 12
Joined: Sep 2004
#1
2005-07-30, 11:00 AM (This post was last modified: 2009-02-11, 07:44 PM by Remco.)
I made a little utility that monitors the free disk space on a diskdrive. When it gets below a certain level; it sends an email so you can clean up some recordings.

It's an DOS-style executable, so you can add it to PostProcessing.bat to automatically check the free disk space after each recording.

Usage: disklimit.exe -disk <disk> -limit <limit> [-messagefile <filename>]
<disk> : The name of the disk you want to monitor. E.g. c or d
<limit> : The limit, that triggers the alarm. E.g. 10gb or 123421342134
<filename> : (optional) If you want an email to be send, you have to specify the emailparameters in a file. An example of this file is included.

Source-files are included

[ATTACHMENT NOT FOUND]

Update: version 1.42
- added a new mailing engine again Smile
- fixed SMTP-authentication
- added support for SSL. Add |SSL:true to the messagefile

Update: version 1.3
- added a new mailing-engine, smtp.dll is not needed anymore
- added the possibility to set the server-port in the messagefile, see message-with-auth.txt for an example
- added the possibility to set the username and password for SMTP-authentication in the messagefile, see message-with-auth.txt for an example

Update: version 1.2
- in the messagefile, you can use %D to include the disk that is monitored in the email
- in the messagefile, you can send the email to multiple addresses by seperating them with a ;

Update: version 1.1
-Added support for monitoring network shares. E.g. disklimit.exe -disk \\server\share -limit 10gb

Hope you like it.
Remco
LilY0da
Offline

Senior Member

Posts: 442
Threads: 25
Joined: Jul 2005
#2
2005-07-31, 12:35 AM
Any chance you could get it to monitor a UNC path/drive?
onestar
Offline

Senior Member

Posts: 252
Threads: 42
Joined: Mar 2005
#3
2005-08-01, 07:32 AM
aha, excellent idea, I'm gonna give it a try. I like the email idea Smile
Remco
Offline

Member

Posts: 152
Threads: 12
Joined: Sep 2004
#4
2005-08-01, 06:24 PM
LilY0da Wrote:Any chance you could get it to monitor a UNC path/drive?

I don't know how to read the free disk space of a network share, but i'm going to give it a try.
Remco
Offline

Member

Posts: 152
Threads: 12
Joined: Sep 2004
#5
2005-08-04, 07:54 PM
Remco Wrote:I don't know how to read the free disk space of a network share, but i'm going to give it a try.

Finished. It wasn't that hard; so now you can use

Code:
disklimit.exe -disk \\server\share -limit 10gb -messagefile message.txt

I guess that's what you meant?

Remco
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#6
2005-08-23, 07:21 PM
I assume that you need the message.txt, the exe, and the dll in the gbpvr directory, correct?
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
Remco
Offline

Member

Posts: 152
Threads: 12
Joined: Sep 2004
#7
2005-08-23, 07:34 PM
Pioneer4x4 Wrote:I assume that you need the message.txt, the exe, and the dll in the gbpvr directory, correct?

No; it doesn't matter where you put the .exe. If you call the exe from a .bat-file, you can put "cd c:\anywhere\" in the .bat-file. Then it can be in directory anywhere.
But the dll and the message.txt have to be in the same directory as the exe
And the PostProcessing.bat needs to be in the gbpvr directory.

Remco
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#8
2005-08-23, 08:42 PM
I added
disklimit.exe -disk e -limit 20gb -messagefile message.txt
to my post processing.bat
I remoted in to my PC and it had this error.
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
Remco
Offline

Member

Posts: 152
Threads: 12
Joined: Sep 2004
#9
2005-08-23, 08:54 PM
I'm sorry, but that error-screendump doesn't give me enough information to find the problem/solution.

Could you please try: run "disklimit.exe -disk e -limit 20gb -messagefile message.txt" from a command promt. If the error still appears, in the dos-box more information should be shown.

Remco
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#10
2005-08-23, 09:11 PM (This post was last modified: 2005-08-23, 09:16 PM by Pioneer4x4.)
I just forgot to put my email server in..... I tried it again, and it worked fine! Thanks. Could I also move the %1 to the subject line? Any other planned features?
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Schedules Direct 90 day free trial offer. rkulagow 3 5,274 2015-07-02, 12:09 PM
Last Post: Reddwarf
  disk update garymeds 1 1,045 2008-07-11, 01:42 PM
Last Post: crossnet
  best free sqlite3 editor pBS 7 10,479 2007-02-17, 01:01 AM
Last Post: Reznor
  Free TV tuner for the NZ folks here?? fusionrx 1 922 2006-09-30, 01:42 AM
Last Post: skippy_nz
  transcode only if disk near full - batch file Koenie 3 1,274 2006-09-27, 07:39 AM
Last Post: Koenie
  Free alternative for Videoredo or Womble erik 38 9,529 2005-10-29, 03:59 PM
Last Post: David
  PVR-250 $90 free shipping tblackwe 6 1,840 2005-07-23, 02:03 AM
Last Post: athomas
  Cheap PVR-150MCE Amazon $67 free shipping jorm 2 1,005 2005-02-17, 02:20 AM
Last Post: gblinckmann
  DVD2MPG saving space test - results inside Networker 5 1,664 2005-02-09, 02:24 AM
Last Post: Networker

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode