Solved

Limit access to a removeable drive programatically

Posted on 2006-06-22
8
221 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

623 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