Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET a floppy's volume Serial Number?
Message
From
21/06/2000 15:45:53
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00382527
Message ID:
00382867
Views:
24
>>Is it possible to set, as opposed to get, the volume serial number of a floppy diskette via a Win32API call?
>
>IIRC (and odds are, I don't), the OS takes care of that because the serial number is supposed to be unique. Therefore, allowing you to set it yourself would defeat the purpose of having a serial number in the first place.

Well, sure. Except that I DO have a purpose. A training session is being run with my app, which I want to be fully functional only if the user has the right token - in this case, a floppy diskette. The volume serial number is the only diskette property not copied by DISKCOPY, which makes it difficult to make more than 1 token diskette for the training class.

Clearly FORMAT under various OSs can set this value, so it is possible; I was simply wondering if it could be done via Win32, rather than resorting to DOS and Norton DiskEdit, etc.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform