|
Answer» Hey,
I need a BATCH file that will erase a cd-rw after a certain date or after it is opened a certain number of times. or even better, when files are attempted to be copied off of the CD.
BASICALLY, I want to make sure a user can open the cd and the files to see the files but never copy them off or use them after a day or two. When they try, the CD-rw will automatically erase itself. I KNOW there is a .bat command that will do this, I just have no idea how to wirte it! I assume I will need to also write a autorun.inf file as well to call the .bat file when the cd is inserted. I need this ASAP! please help!
Thanks!
KraigThere is a nifty utility in the Windows 2003 Resource Kit called cdburn that can erase a cdrw disc.
As for your WISH list:
I need a batch file that will erase a cd-rw after a certain date - VBScript is very good with date arithmetic
or after it is opened a certain number of times - batch code can do integer arithmetic and persist the result in a file
or even better, when files are attempted to be copied off of the CD. - this is more problematic; you'd need some way to intercept a copy command issued against the cd and replace it with your code.
Good luck.
|