Question Locked

Automatically start software

0 helpful
19 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a USB device that I wont to auto run an application on a PC whenever it it plugged in.

How do I do this?

19 replies

by rob miners

The autorun.inf file is the key to getting your USB drive (or CD-ROM drive, for that matter) to perform certain actions automatically and customize it?s look in My Computer. The purpose of this article is to shed some light on how this can be done.

http://dailycupoftech.com/usb-drive-autoruninf-tweaking/

Sample Autorun.inf

[autorun]
open=setup.exe
icon=setup.ico

To run a Batch file that will invoke a Program.

[autorun]
open=sub.cmd

sub.cmd
==================
@echo off

set path=%~dp0;%path%

subst V: %~dp0

goto view

:view

explorer /e: /root,V:\icons

goto end

:end
=============
http://autorun.moonvalley.com/autoruninf.htm

by daniel

Sorry I should have been more explicit. The device is a Embedded controller with a FTDI FT232RQ chip for the USB communications.

When I plug this product in I wont it to start an interface application on the PC.
- USB device has no Drive.
- Application located on local PC.

by cg it

for an IT administrator, having someone running around with a flash drive that will autorun a program when you plug it in, gives me the willies.

When someone asks this kind of question, I envision someone with an ax to grind creating this little virus program that runs when you plug in the USB drive thus infecting the network.

by rob miners

you never know what the ulterior motive is behind it. I like to think that it is being used as a tool to automate an honest task. But then again there is always an element of doubt. ;)

by daniel

Note: below the previous reply!!!!!!

I wont to run a application on a PC hard drive Pre installed when a hardware that has medical device is connected to the PC it auto starts the interface software. Writing something to run off a memory stick any dipstick could do.

This is the same as connecting an ipod with no memory and starting itunes why so hard?

"More clearification
Sorry I should have been more explicit. The device is a Embedded controller with a FTDI FT232RQ chip for the USB communications.

When I plug this product in I wont it to start an interface application on the PC.
- USB device has no Drive.
- Application located on local PC. "

by rob miners

the drivers that would have been supplied with the device. If it was designed to automatically connect it would do so. I'm not a programmer so I must be closer to being a dipstick.

by older mycroft

And I can't help but form the totally ill-educated, dipstick-like opinion that it is basically intended to ALLOW an application to run, rather than to invoke it's activation.

Most of what 'Future Technology Devices International Ltd.' have to say about it, tends to suggest it is deigned to act like a security dongle. I've never seen a dongle that activated a dormant program, more like allowed a program to be started by the user.

But what would I know - I'm just a dipstick.

by cg it

was a USB device that unless plugged in, you couldn't boot up the computer. I thought it was great for laptop security. We tried it and intially thought manna from heaven.

Then came the problems with users losing the damn things. They were coded chips and couldn't be cloned. Well pretty soon we had to start flashing bioses, reinstalling everything. Nightmare.

by cg it

anyone who creates hardware using USB usually makes the damn thing plug and play. If not, then as Jackie Howe mentions, they supply the drivers and applications required, like printer and scanner mfgs do. .

I program, not often, but must be a dipstick as well.

by cg it

especially with that Irish guy ...

by cg it

people would actually buy a product Start ya Bastard simply because of the name...

by daniel

All this response is not answering my question. How do I get a non USB memory program ie c:\program files to start when a USB device other than a drive is connected to the USB port ie plug and play?

Please some useful answers

This discussion is closed to new replies.