• Post Reply Bookmark Topic Watch Topic
  • New Topic

Floppy Disk Lock  RSS feed

 
Balasubramanian Chandrasekaran
Ranch Hand
Posts: 215
Firefox Browser Linux VI Editor
  • Mark post as helpful
  • send pies
  • 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:
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 15865
81
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • 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).
 
ujjwal soni
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's no method like this in java

Cheers,

Ujjwal B Soni
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!