Solved

Limit access to a removeable drive programatically

Posted on 2006-06-22
8
209 Views
Last Modified: 2011-09-20
How can I programatically limit access to a removeable drive in Windows or give access to it.  For example, I would like to password protect the drive.  If the password is supplied, let windows/current user have access to it.
0
Comment
Question by:bc4942
  • 2
  • 2
8 Comments
 
LVL 20

Expert Comment

by:alainbryden
ID: 16961879
That is something built onto a removable drive but it has nothing to do with visual basic. If you want a password protected removable drive then you need to buy a password protectable removable drive. (Most large ones come with this feature, just right click on the drive and alter it's properties)
0
 

Author Comment

by:bc4942
ID: 16962292
so there is no api call or anything with windows that would let you "disconnect" or "reconnect" a drive?  Interesting.
0
 
LVL 30

Expert Comment

by:nmcdermaid
ID: 16964939
There probably is an API but the user would actually have to run your VB App to activate it...

You could put your app in the statrup but there are many ways around that.
0
 

Author Comment

by:bc4942
ID: 16969493
I understand...Full disclosure might be needed here..  I have created a CDROM partition on a USB key (like U3)  When the Key is inserted, 2 drives are added:  a "cd-rom" and a removeable disk (just like U3).  On the CDROM there are 2 files.  My .exe and autorun.inf.  My .exe currently scans the Windows removeable drives to find the one that is the key and then executes a custom menu of items on the key (similar to U3).  Looking to limit access to that dive.
0
 
LVL 20

Accepted Solution

by:
alainbryden earned 500 total points
ID: 16970550
Oh I see. Well then I would say the best thing to do would be to encrypt the contents of that drive and add a small decryptor to your accessing program. I know that this is the "if all else fails" solution, but it may come down to that.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now