• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Floppy Disk Lock

 
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I figured out there is a setReadOnly() method in the File class to make a file as a readonly.Is there any other class or methods available to make Entire Floppy Drive itself as ReadOnly.

Is it possible using java or else i have to go for a native code only.
Any help about this matter :roll:
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, there isn't such a method in Java.

You can make a 3.5 inch floppy read-only by physically changing the switch on the floppy itself (to open/close the hole on the disk).

There's no way to make a floppy read-only with only software (neither with Java nor with a native function call).
 
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's no method like this in java

Cheers,

Ujjwal B Soni
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic