DIGIT-ARC read-only archive · snapshot: July 23, 2026

How to make a file write protected?

15 posts · originally from https://geek.digit.in/community/threads/how-to-make-a-file-write-protected.159671/

ithehappy
ithehappy Original post #1
Jul 6, 2012 at 11:08 PM
I wanna give away an app to a person which i would like to be write protected. I mean, i won't allow the person to have the option to share it with other persons. How can i do that?
Is it only possible with CD/DVD? or as well with Pen drive or other storage devices?
Please inform me, i really need it.

TIA.
dashing.sujay
Jul 7, 2012 at 12:29 AM
I remember there was a trick to do that via DOS back in days of win 2000. Can't say of now. I tried hard to find that trick, but of no avail.
RCuber
RCuber #3
Jul 7, 2012 at 12:43 AM
not possible.. what ever file you build is just a file. a file can be copied.. it up to you to add protection inside the application(read License key) .. welcome to the world of DRM .
ithehappy
Jul 7, 2012 at 12:45 AM
Yes, a file can be copied, but can't i write protect the media, say the cd/dvd? I heard there are some write protected cd's!!
RCuber
RCuber #5
Jul 7, 2012 at 12:51 AM
Yes, a file can be copied, but can't i write protect the media, say the cd/dvd? I heard there are some write protected cd's!!

copy protection in CD/DVD are there .. but that done when manufacturing .. check this Compact Disc and DVD copy protection - Wikipedia, the free encyclopedia

companies spend millions of $$$ to make their content copy protected.. but still they get circumvented.. how does the DVD/bluray Rips come out?? ;)

so make a file copy protected will be a waste of time.. but where you can succeed is by putting licensing logic into ones application..

there are couple of ways to do it.. let me know if you want to know about it.. also please mention if your app is a windows app or a mobile app.
ithehappy
Jul 7, 2012 at 2:11 AM
You got a PM.
RCuber
RCuber #7
Jul 7, 2012 at 2:04 PM
As we are discussing about a single file, its not possible to make it copy protected
I
Jul 7, 2012 at 6:17 PM
i think dos Attrib Commond can help you...
dashing.sujay
Jul 8, 2012 at 5:05 PM
^How will it work on first hand ?
RCuber
RCuber #12
Jul 8, 2012 at 5:18 PM
^How will it work on first hand ?

I don't recall. But I do recall I had a hard time deleting a virus of my computer in those DOS era. IIRC it can be done by setting it as readonly+system+hidden, as before I cannot recall the exact attribute used.
R
Rajesh345 #13
Jul 8, 2012 at 6:31 PM
I don't recall. But I do recall I had a hard time deleting a virus of my computer in those DOS era. IIRC it can be done by setting it as readonly+system+hidden, as before I cannot recall the exact attribute used.


Not sure about virus,but normal file hidden ,system R.only can be removed via

attrib -r -s -h

>attrib -r -a -s -h 1.txt
dashing.sujay
Jul 8, 2012 at 6:38 PM
^I know that and it doesn't provides any type of protection or restriction.
Gauravs90
Gauravs90 #15
Jul 8, 2012 at 6:51 PM
You want to accomplish those things which big company's can never achieve.