Click here to Skip to main content
11,715,043 members (68,403 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: VB9.0

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

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 520
1 Richard MacCutchan 275
2 Maciej Los 259
3 ManasKumarM 155
4 Frankie-C 125
0 Sergey Alexandrovich Kryukov 775
1 CHill60 415
2 Richard MacCutchan 405
3 Maciej Los 389
4 OriginalGriff 320

Advertise | Privacy | Mobile
Web01 | 2.8.150901.1 | 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