0

Hello all,

I was trying to make a folder secure. So when the folder is opened( or any operation is performed on the folder like deletion) an application would open and ask for password. The application i have is an exe file which is dos based and asks for password. Is there any way to make this sort of connection between the file and the folder ? or should i write some batch files like autoexec.bat ?

Thanks all in advance!

Any help would be greatly appreciated.

Arbus

Edited by Arbus: n/a

7
Contributors
12
Replies
14
Views
6 Years
Discussion Span
Last Post by aquamarine_kath
0

Windows doesn't natively support this. If you want to password protect something on the file system, unforunately you will have to encrypt it. There's some software out there already that do this exact function.

There may be a way to do this with a programming language such as C++, but it is definately beyond writing anything in batch. You would need to either modify windows system files, or attach to explorer.exe and halt the accessing/tampering of certain things in the file system.

Edited by skatamatic: n/a

0

Make an exe file that contains a code which can ask user for password and handle it accordingly. Make a new file with extension ".inf" in which you will include the below lines:
[autorun]
open=filename.exe /argument1

Now whenever you will call/open your folder containing these files, the .inf file will automatically be called and thus your exe file will be executed.

However, the only problem here is most probably your antivirus can remove this .inf file considering it as some kind of virus.

0

Thaks for your replies:)
@secrum:
Where do i put the inf file ?
@jingda:
Yes jingda, But i want to try this way and moreover the softwares i downloaded are all trialwares.

How can i halt access to certain folders ? Is it related to putting some restrictions on certain directories.

0

@secrum :
I did that but when i opened the folder no exe file executed

0

Then try to edit the file and insert an additional line in it.

[version] 
$WINDOWS NT$
0

Note: Windows will start the file while opening the folder and not instead, so your files won't be protected. On top of this, anybody can open that folder with a 3rd party program or with disabled autorun, so it's not real security.

0

TrueCrypt which is suggested earlier, is also free. - NO trial ware, and NO nag screens and such, but fully functional.

Using truecrypt, you can create a highly encrypted file, and mount it as a drive with a folder structure.

Another option could be to create a new small partition on your harddrive, and encrypt it with bitlocker. But that is even more trouble than using truecrypt imo., and still isn't what you ask for (which isn't functionally sane btw. ;) ), so I recommend TC as the best safe alternative as I see it.

Edited by jak0b: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.