Click here to Skip to main content
15,891,902 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Sirs,

I want detect a pendrive when it is inserted in USB slot and then to be asked for the password.

How can it be done in KERNEL through coding in it.
Posted
Updated 1-Sep-10 11:29am
v3
Comments
Sandeep Mewara 1-Sep-10 15:44pm    
What have you tried so far? Any groundwork? Google?
Dalek Dave 1-Sep-10 17:29pm    
Minor Edit for Grammar.
ThatsAlok 3-Sep-10 5:52am    
In My company, IT people are come with a application which actually open pendrive in readonly mode, means you can write anything into pendrive but vice versa is possible... i am looking for same for quite long time, but couldn't found any pointers.. may be you able to find!

When you insert a pendrive into USB slot, the behavior or action you will achieve really depends on the current operating system of that computer; not anything inside the pendrive. So, technically, I don't think it is possible.

But, since Windows provides AutoRun mechanism, this is logically possible, but not a common/effective practice. Users can bypass AutoRun anytime, so nothing are protected with password. If you want to protect your files inside, you can use file archivers such as 7-zip or WinRAR to compress and encrypt the files with password.
 
Share this answer
 
There is a special file called AutoRun.ini which runs automatically whenever some external device is getting in touch with the op sys.

This will let you to execute a special program which might ensure that the drive is not accessible.

But in most of the cases, Antiviruses does not allow (or even ask the user) to give permission to run the program in Autorun.

So this would not be possible to ensure that those programs will run, as most of the viruses are created to transmit using Autorun.ini.

Rather than doing this, I think it is better to have a special application an exe which helps to unlock an encrypted folder inside your pen drive.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900