Click here to Skip to main content
15,900,369 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a following requirement from my client

On inserting a CD, autorun should execute the program which will load a DATA ENTRY FORM.
User will enter data into the Form
On completion he will Click SUBMIT button on the form.
On Submit => 1. A report should be generated and saved into C: root.
2. CD Should be blocked / made unusable so that no one can use it again.

So my quetion is how to make the CD unusable so that it is not used by anyone after its first use. I have to do it using .Net 3.5

Thanks
Vijayraj.
Posted

Writing anything into C: root is pretty unfriendly too. That was already not a good idea 15 years ago.
 
Share this answer
 
There are several issues with your "plan".

0) Not everyone has auto-run turned on for removable media (for instance, I don't).

1) You can't "disable" a particular CD. It's simply impossible to do.

2) Your only recourse is to have the application register its media when it's run. This can be accomplished one of several ways - the user's local registry (can be discovered and removed manually by the user), the user's application data folder (can be removed manually by the user), or a remote registry database (this would actually lock out the app itself from being used.

You could make the app refuse to run if it's not running from a CD, as well.
 
Share this answer
 
v2
You could save information, that this disc hase been red already on the computer and refuse to do it a second time, but that won't stop people from using the same disc with another computer.

I don't think you can really block the cd (i.e. destroy the data on the disc), at least not with a cd-r, but why not use cd-rw and erase the data after its first use? edit: Ok, bad idea, see John Simmons' comment below the answers.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900