Question

Locked

Automatically start software

By daniel ·
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?

This conversation is currently closed to new comments.

19 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Autorun.inf

by Jacky Howe In reply to Automatically start softw ...

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

Collapse -

More clearification

by daniel In reply to Autorun.inf

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.

Collapse -

Is this related to your x64 post ?? ...

by OldER Mycroft In reply to More clearification

http://techrepublic.com.com/5208-10879-0.html?forumID=101&threadID=310425&messageID=3087022

If so, you are just wasting our time by splitting the available resources, by posting twice with conflicting details.

Collapse -

I tend to wonder about questions like this....

by CG IT In reply to Automatically start softw ...

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.

Collapse -

Yep, I tend to agree

by Jacky Howe In reply to I tend to wonder about qu ...

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.

Collapse -

This has nothing to do with a USB stick or external memory etc

by daniel In reply to I tend to wonder about qu ...

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. "

Collapse -

Install

by Jacky Howe In reply to This has nothing to do wi ...

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.

Collapse -

I've been wading through the spec sheets for this chip...

by OldER Mycroft In reply to Install

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.

Collapse -

I remember when MSI first came out with those

by CG IT In reply to I've been wading through ...

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.

Collapse -

USB is plug and play

by CG IT In reply to Install

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.

Back to Software Forum
19 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums