Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2006

Tip: Looking for answers? Try searching our database.

file protection

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jaisabari - 07 Mar 2006 06:33 GMT
How to protect a file with a password ,
means the file which created from my program should not be deleted
by any means in the client system,
still,if anyone tries to delete the file it should ask for a password.

Signature

Regards
Jaisabari

Cowboy (Gregory A. Beamer) - MVP - 07 Mar 2006 16:03 GMT
1. You want to create a file on someone else's machine
2. You want to make sure they cannot delete that file
3. If they try to delete that file, you want them to have to give a password?

Is this correct?

1. Who owns this machine? You? or the client?

Your intentions may be good, but you should not have control over someone
else's machine. There are ways around this, of course, but programs that
employ these techniques are generally known as viruses and spyware.

If this is a network program, put in a policy that prevents deletion of the
file and replaces it if it is deleted. If it is a person who just installed
your software, give it up. If this particular file is critical to your
software, create a routine that downloads if missing or place the information
somewhere else (registry, etc.). You may have to rearchitect your solution to
get this done.

Signature

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

> How to protect a file with a password ,
> means the file which created from my program should not be deleted
> by any means in the client system,
> still,if anyone tries to delete the file it should ask for a password.
Prakash M - 07 Mar 2006 19:19 GMT
Write a windows service and keep it running all the time just by keeping this
file opened programatically in write or read(based on the requirement) Mode.
So if anyone is explicitly trying to delete this file will get a warning like
this file is used by an another program.

Sounds Cool ?!
Signature

Prakash M

> How to protect a file with a password ,
> means the file which created from my program should not be deleted
> by any means in the client system,
> still,if anyone tries to delete the file it should ask for a password.
Prakash M - 07 Mar 2006 19:26 GMT
Incase if you want to delete this file, you can do it by passing a custom
command code the windows service, whioch will delete this file
programatically.
Signature

Prakash M

> Write a windows service and keep it running all the time just by keeping this
> file opened programatically in write or read(based on the requirement) Mode.
[quoted text clipped - 7 lines]
> > by any means in the client system,
> > still,if anyone tries to delete the file it should ask for a password.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.