Click here to Skip to main content
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 15:23pm
JohnPDB318
Edited 25-May-12 20:15pm
(no name)498.9K
v3

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

  Print Answers RSS
0 OriginalGriff 410
1 Sergey Alexandrovich Kryukov 329
2 Afzaal Ahmad Zeeshan 264
3 BillWoodruff 235
4 CPallini 195
0 OriginalGriff 5,560
1 DamithSL 4,476
2 Maciej Los 3,942
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 26 May 2012
Copyright © CodeProject, 1999-2014
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