Ad Widget

Collapse

Monitor a cd/drive in Windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • geno
    Junior Member
    • Nov 2008
    • 29

    #1

    Monitor a cd/drive in Windows

    Hi guys,

    I've searched the forums for help on this but didn't find anything. We want to monitor the free space on a DVDRAM drive so that when the disk gets full we are notified.

    I used "perf_counter[\LogicalDisk(C: )\Free Megabytes]" to check harddrives, but optical drives (DVD/CD) do not show up in perfmon, or atleast nowhere that I'm looking at.

    Has anyone tried or done this before? What was the solution?

    Thanks
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    Hi geno -

    I think you can do this with a regular key instead of a performance counter.

    We have a windows machine that whenever we put a CD in the drive, it reports the free space (which is 0 on a CD already written to). But anyway, all you need to know is what letter that drive maps to and create an item/key for it. You can just clone the existing setup for the C: drive item and change the key as appropriate.

    ie - vfs.fs.size[e:,free]

    Not sure how free space will be calculated on a CD/DVD drive though. Since ours is only a CD ROM and not a CD Writer, I guess it will always return 0 as the amount of free space.

    Comment

    • geno
      Junior Member
      • Nov 2008
      • 29

      #3
      Thanks, you were correct. I never considered using the built-in vfs.fs.size because in the v1.6 (016) of the manual (p99 of 314), that item is not supported under windows. I guess I need to go re-check the changelog!

      (I did find another solution; which was to code a command line tool in C# that queries the drive and then reports the free space, I'll provide this tool if anyone interested...)

      Comment

      Working...