Jump to content

Recommended Posts

Posted (edited)

I'm creating a little application in visual basic 2010 express to mount/dismount a truecrypt volume thats stored on a USB drive.

I want this application to autorun when someone double clicks on the USB device.

 

How can i do this?

It's for windows XP and 7.

 

I tried the autorun.inf way of

open=myapplication.exe

 

When I double click the usb drive it doesnt launch the application. Can i do something in visual basics to make the application autorun?

 

I want it to work like when you insert a windows cd into your pc. If you insert windows XP and go my computer and double click the cd drive the setup.exe will launch. I want exactly this, just it needs to work on a usb device and launch my visual basic application

 

please help

Edited by ihaveaproblem
Posted

But why does Windows XP CD still work then?:confused:

If i go to my computer and double click the CD drive that XP is in it launches the setup.exe automaticaly.

 

Why can windows XP do it but not me lol?

 

EDIT

 

Also it doesnt work on XP for me either.

Posted

Ah that makes sence!

It should work on WinXp though right?

 

My autorun is this

[autorun]

label=Encrypted

open=encrypt.exe

icon=encrypt.exe

 

encrypt.exe is in the root of the usb along with the autorun.inf

Posted
Ah that makes sence!

It should work on WinXp though right?

 

My autorun is this

 

 

encrypt.exe is in the root of the usb along with the autorun.inf

 

Assuming they haven't disabled autorun it'llproc autoplay, giving option to run it.

 

However not sure your name tag is valid, I may be mistaken but isn't it label? Or is there both

 

Steve

Posted
The only way you're going to get this to work is to use USBDLM to automatically run Encrypt.exe when the USB flash drive is inserted. I can post more details if interested?
Posted
The only way you're going to get this to work is to use USBDLM to automatically run Encrypt.exe when the USB flash drive is inserted. I can post more details if interested?

 

I took the assumption this is for staff at home, so installing a per pc client didn't seem to work

 

Steve

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...