aspose file tools*
The moose likes General Computing and the fly likes Lock folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Lock folder" Watch "Lock folder" New topic
Author

Lock folder

lavanya airwala
Greenhorn

Joined: May 15, 2012
Posts: 3
how to lock a folder in C folder data
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

I think it would help if you provided a little more information about what you hope to accomplish.


JBoss In Action
lavanya airwala
Greenhorn

Joined: May 15, 2012
Posts: 3
Peter Johnson wrote:I think it would help if you provided a little more information about what you hope to accomplish.

i want protect some softwares from others in the system.how to lock c drive folders.not only C drive lock also want how to lock D or E drives
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3610
    
  60

What do you want to achieve by locking a folder? (As it is generally possible to lock a file, but not a folder, you'll have to devise a different way of doing it. We should start the discussion there.)
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3610
    
  60

After re-reading your answer: do you want to disallow access to files your folder to prevent your software from being modified (hacked)? That could be achieved in a very limited way by modifying folder permissions, but in general this is impossible. An administrator can always override folder permissions on his own computer.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

i want protect some softwares from others in the system

What does this mean? What do you mean by "protect"? Do you mean you don't want other software from reading the data or configuration information of some other software, or of the user? Of do you want to prevent some software from making changes to things it is not allowed to change? What do you mean by "others"? Other software? Other users?

Please be specific with what you want to accomplish! We can't help you if we don't know what you want to do!
lavanya airwala
Greenhorn

Joined: May 15, 2012
Posts: 3
Martin Vajsar wrote:After re-reading your answer: do you want to disallow access to files your folder to prevent your software from being modified (hacked)? That could be achieved in a very limited way by modifying folder permissions, but in general this is impossible. An administrator can always override folder permissions on his own computer.

i have some original versions of softwares ,that's why i want protection for C folder software from other users ,not an admin
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3610
    
  60

This is generally not feasible. A locally run software cannot resist a determined attack. To prevent this, you might place the sensitive code on a secured server and call it remotely (via webservices, for example).

If you want to protect your software from illegal redistribution, there might be licensing libraries/packages available. For Java applications, see http://www.coderanch.com/how-to/java/Java-FAQ#licensing. Again, these schemes cannot sustain a determined effort to break them.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

You still have not given us any idea about what kind of protection you are looking for.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Lock folder