首次读取后如何阻止CD [英] How to block a CD after First Read

查看:110
本文介绍了首次读取后如何阻止CD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的客户有以下要求

插入CD时,自动运行应执行将加载数据条目表的程序.
用户将数据输入到表格
完成后,他将单击表单上的提交"按钮.
在Submit => 1时.应生成报告并将其保存到C:根目录.
2. CD应该被阻止/无法使用,以使任何人都无法再次使用它.

因此,我的问题是如何使CD无法使用,以使首次使用后任何人都不要使用它.我必须使用.Net 3.5来做

谢谢
Vijayraj.

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.

推荐答案

将任何内容写入C:root也是非常不友好的. 15年前,这已经不是一个好主意.
Writing anything into C: root is pretty unfriendly too. That was already not a good idea 15 years ago.


您的计划"存在几个问题.

0)并非每个人都为可移动媒体打开了自动运行功能(例如,我没有).

1)您不能禁用"特定的CD.根本不可能做到.

2)您唯一的办法是让应用程序在运行时注册其媒体.这可以通过以下几种方式之一完成-用户的本地注册表(可以由用户手动发现和删除),用户的应用程序数据文件夹(可以由用户手动删除)或远程注册表数据库(这实际上会锁定应用程序本身,使其无法使用.

如果应用程序也不能从CD上运行,也可以使它拒绝运行.
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.


您可以保存信息,表明该光盘已经在计算机上变红并拒绝.再次执行此操作,但这不会阻止人们将同一张光盘与另一台计算机一起使用.

我认为您不能真正阻止CD(即销毁光盘上的数据),至少不能用cd-r,阻止,但是为什么不使用cd-rw并在首次使用后擦除数据呢? 好的,不好的主意,请参见答案下方的约翰·西蒙斯(John Simmons)的评论.
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.


这篇关于首次读取后如何阻止CD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆