• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

hard disk i/o and java ....urgent

 
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
friends,
using java, i need to determine if the hard disk is being written to or read from (open/copy) at any time
ie. if in an os like windows, if i create a new file and try to save it to the hard disk, my java program (running perpetually in the background) should pop up a dialog box informing me that data is being written to the hard disk.
this is very urgent. do reply soon

c
 
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think there is a way to do this in Java. What you are asking for is a very low-level feature. You want to patch the low-level I/O routines to the harwdare to incercept all disk access requests. You would need to use JNI at the very least, and be prepared to write this code yourself in C. PLUS, it's not going to be portable at all. YOu'll have to maintain this code not only for specific hardware platforms, i/o busses, motherboards, etc, but probably for each new version of the OS that comes out...win98, winme, 2000, XP, etc.
Rob
 
The first person to drink cow's milk. That started off as a dare from this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic