Is it Possible to Secure windows folders
Hi,
I am curious whether it is possible in VB 6 or not.
I want two apply some security on windows folder so that no one from windows can see its content, this folder is only accesible to to my vb code.
Requirement
1. Say i have a folder called BP
2. I have put the data base connection Conn.txt inside folder BP
3. Need to Lock Bp folder by my vb6 program code say program name is LockWinFolder
When I run program LockWinFolder it will ask input for folder like C:\test\BP then ask for Lock Code say 12345 {I have entered manually}
4. when I open folder from windows directory then I will get error.
but I can access the Database file Conn.txt through code LockWinFolder
:eek2:
Re: Is it Possible to Secure windows folders
No. Windows filesystem security is user-based, not based on some sort of external password.
You'll probably want to store that connection string in encrypted form, based on a password/passphrase hidden or obfuscated in the program or elsewhere.
Re: Is it Possible to Secure windows folders
thanks for that,
do not focus on my database file it is just an example, i have already encrypted the same.
According to you it is not possible to lock a folder using Vbprogram right..?
Is some one else have any thoughts for the same.
Re: Is it Possible to Secure windows folders
Quote:
According to you it is not possible to lock a folder using Vbprogram right..?
Is some one else have any thoughts for the same.
Ummm... It is possible to create a folder locker in vb6... I haven't created one till date but I am sure there will be codes lying somewhere on the web if you know how to search for it... :)
Edit
Here is one which I found in vbf. Though it is not that efficient because you can still open the folder by right clicking on it and clicking on explore but the concept is interesting...
http://www.vbforums.com/showthread.p...31#post2962631
I am sure if you google it out, you will find something...
The other alternative is to zip the folder and seta password to it...