Click here to Skip to main content
14,876,218 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:

I may have an idea in programming practice. I want to create a copy prohibit flag in Visual Basic that goes by its class. The same way or even a better way than the SCMS (Serial Copy Management System). Here would be the following steps:

1. Create a public class routine module that includes the following parameters:
copyProhibit, fileInput, fileTarget
along with StreamReader and StreamWriter libraries.

2. Create a try..catch..finally routine block in the customized class module:
    copy the file

catch on err number
    copy prohibited

That's one idea. Another idea is to make a non-copyable file block. That is, once the files are placed in the file block, they can't be copied back onto the hard drive or to another offline storage medium.

Can this be done in VB 2008, and if so, P-code it to C?

Thanks in advance for your response.
Updated 25-May-12 19:15pm

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