Click here to Skip to main content
11,648,785 members (82,917 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB9.0
Hi!

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:
try
    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.
Posted 25-May-12 14:23pm
JohnPDB318
Edited 25-May-12 19:15pm
(no name)502K
v3

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

  Print Answers RSS
0 F-ES Sitecore 409
1 CPallini 370
2 OriginalGriff 334
3 Kornfeld Eliyahu Peter 324
4 Sergey Alexandrovich Kryukov 254
0 OriginalGriff 1,512
1 Sergey Alexandrovich Kryukov 1,022
2 jyo.net 994
3 DamithSL 986
4 CPallini 945


Advertise | Privacy | Mobile
Web04 | 2.8.150804.4 | Last Updated 26 May 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100