How to make a file write protected?

Discussion in 'Software Q&A' started by ithehappy, Jul 6, 2012.

  1. ithehappy

    ithehappy Active Member

    Joined:
    Sep 23, 2010
    Messages:
    3,678
    Likes Received:
    4
    Trophy Points:
    38
    Location:
    Calcutta
    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.
     
  2. dashing.sujay

    dashing.sujay Moving Staff Member

    Joined:
    Nov 12, 2009
    Messages:
    5,497
    Likes Received:
    30
    Trophy Points:
    48
    Location:
    Gaya
    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.
     
  3. RCuber

    RCuber The Mighty Unkel!!! Staff Member

    Joined:
    Sep 7, 2004
    Messages:
    7,107
    Likes Received:
    12
    Trophy Points:
    38
    Location:
    ಬೆಂಗಳೂರು (Bengaluru)
    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 .
     
  4. OP
    OP
    ithehappy

    ithehappy Active Member

    Joined:
    Sep 23, 2010
    Messages:
    3,678
    Likes Received:
    4
    Trophy Points:
    38
    Location:
    Calcutta
    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!!
     
  5. RCuber

    RCuber The Mighty Unkel!!! Staff Member

    Joined:
    Sep 7, 2004
    Messages:
    7,107
    Likes Received:
    12
    Trophy Points:
    38
    Location:
    ಬೆಂಗಳೂರು (Bengaluru)
    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.
     
    Last edited: Jul 7, 2012
  6. OP
    OP
    ithehappy

    ithehappy Active Member

    Joined:
    Sep 23, 2010
    Messages:
    3,678
    Likes Received:
    4
    Trophy Points:
    38
    Location:
    Calcutta
    You got a PM.
     
  7. RCuber

    RCuber The Mighty Unkel!!! Staff Member

    Joined:
    Sep 7, 2004
    Messages:
    7,107
    Likes Received:
    12
    Trophy Points:
    38
    Location:
    ಬೆಂಗಳೂರು (Bengaluru)
    As we are discussing about a single file, its not possible to make it copy protected
     
  8. Insane143

    Insane143 New Member

    Joined:
    Jul 7, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    indore
    i think dos Attrib Commond can help you...
     
  9. dashing.sujay

    dashing.sujay Moving Staff Member

    Joined:
    Nov 12, 2009
    Messages:
    5,497
    Likes Received:
    30
    Trophy Points:
    48
    Location:
    Gaya
    ^How come ?
     
  10. RCuber

    RCuber The Mighty Unkel!!! Staff Member

    Joined:
    Sep 7, 2004
    Messages:
    7,107
    Likes Received:
    12
    Trophy Points:
    38
    Location:
    ಬೆಂಗಳೂರು (Bengaluru)
    it can be changed by anyone having access to the file. :p
     
  11. dashing.sujay

    dashing.sujay Moving Staff Member

    Joined:
    Nov 12, 2009
    Messages:
    5,497
    Likes Received:
    30
    Trophy Points:
    48
    Location:
    Gaya
    ^How will it work on first hand ?
     
  12. RCuber

    RCuber The Mighty Unkel!!! Staff Member

    Joined:
    Sep 7, 2004
    Messages:
    7,107
    Likes Received:
    12
    Trophy Points:
    38
    Location:
    ಬೆಂಗಳೂರು (Bengaluru)
    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.
     
  13. Rajesh345

    Rajesh345 Member

    Joined:
    Nov 1, 2008
    Messages:
    663
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Kerala

    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
     
  14. dashing.sujay

    dashing.sujay Moving Staff Member

    Joined:
    Nov 12, 2009
    Messages:
    5,497
    Likes Received:
    30
    Trophy Points:
    48
    Location:
    Gaya
    ^I know that and it doesn't provides any type of protection or restriction.
     
  15. Gauravs90

    Gauravs90 geek........

    Joined:
    Sep 24, 2008
    Messages:
    739
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Thane, India
    You want to accomplish those things which big company's can never achieve.
     

Share This Page