Folder/File locking
-
Is there any way to lock a folder/file through VB.NET code.
-
Is there any way to lock a folder/file through VB.NET code.
If you hold a file open, then no-one else can use it. Folders, no.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Is there any way to lock a folder/file through VB.NET code.
I need a kind of password protection.
-
I need a kind of password protection.
OK, then the answer is no. To do that, the best way I can see, is to replace the files and folders with files that are encrypted and are opened by double clicking on them via a custom file extension. There are commercial products that I believe do this, I don't see how else they could work.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
I need a kind of password protection.
Other than the method Christian mentioned, there's no way to do this without rewriting the NTFS File System. Youi cannot just assign a password to a file or folder like you see in the movies.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
Other than the method Christian mentioned, there's no way to do this without rewriting the NTFS File System. Youi cannot just assign a password to a file or folder like you see in the movies.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008The movies..... lied ? *sob*
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
The movies..... lied ? *sob*
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
Christian Graus wrote:
The movies..... lied ? *sob*
Or did I just lie?? ;P Hmmmm... I'll never tell! Muhahahahaaaaa
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008