Auto run from USB stick?
Auto run from USB stick?
Anybody know of a working method to get a program auto running from a USB stick when inserted into a SP3 XP ?
Seems microsoft has done a lot to prevent this from being possible. The autorun.inf file doesn't work for instance (like it would on a DVD)
Seems microsoft has done a lot to prevent this from being possible. The autorun.inf file doesn't work for instance (like it would on a DVD)
Re: Auto run from USB stick?
If you want to do it on just one machine (or just a few), I've got an AutoHotKey script that I used to use. It was my one and only attempt at scripting, and I never got around to making it easier to use so that I could share it with the public. I got to the point of getting it to use an .ini file, but a GUI was beyond me (though I'm sure there are some templates over at the AHK forums). The ini file specifies which drive letters to poll, what drive labels to look for, and then what program(s) to run.
Cons and Pros:
Cons and Pros:
- It doesn't actually run the Autorun.inf file, but a program (or up to three programs, as it's now written) defined in the ini file.
- You have to set your usb drive to a static drive letter in Windows (unless you're certain it'll always get assigned the same letter), and I believe you need administrative access for that. However, I may be able to re-write it to sequentially poll a number of likely drive letters. I originally used AHK's command to poll all drives, but I had a floppy drive at the time and that made it annoyingly spin up every time.
- It's able to look for 2 drives, which increased the complexity enough that I didn't want to try to get it to look for a drive at all drive letters (except fixed drives like a: and c:). If I changed it back to a single drive letter, it could be less than 40 lines long.
- It was written to launch a program on the host machine or on an inserted drive with a static drive letter, so it currently requires the full path to the program.
Re: Auto run from USB stick?
I'm afraid I don't know of AutoHotKey.
Its very kind of you to offer - but if windows really can't be configured to allow this, and the only answer is to have a program constantly running, I could write one myself.
But thanks for your feedback
Its very kind of you to offer - but if windows really can't be configured to allow this, and the only answer is to have a program constantly running, I could write one myself.
But thanks for your feedback
Re: Auto run from USB stick?
A slight bit off topic but if you have an external hard drive you might get around that problem (auto run), at least in my tests in Vista, and XP. (Running the portableapps.com menu and some apps.)
Please anyone who can test this I am interested in your negative results.
An external hard drive might allow you to auto-run, and it will definitely save soft deleted items to a recycle bin as with any hard drive.
I have been looking at some micro hard drives and I have found some in 30 GB that are only 52 x 48 x 15.7-mm closed, including a full size (type a) flip out usb connector.
I have yet to test the 30 GB but the smaller capacity and cheaper micro hard drives are functional, and not any slower for me than my flash drive. (the usb plug flips out and on the one I am testing swivels 90° left or right.)
I have not tested this with the larger portable hard drives, but I am sure it should work, (unless it is just the machines I am using).
I like a micro hard drive for the same reason i like flash drives, small size and form factor.
I have seen portable hard drives drop to below the $79.00 for 320 GB mark and be sold in a presently too well know national chain store.
I will be posting some of my results in the hardware section.
Please anyone who can test this I am interested in your negative results.
An external hard drive might allow you to auto-run, and it will definitely save soft deleted items to a recycle bin as with any hard drive.
I have been looking at some micro hard drives and I have found some in 30 GB that are only 52 x 48 x 15.7-mm closed, including a full size (type a) flip out usb connector.
I have yet to test the 30 GB but the smaller capacity and cheaper micro hard drives are functional, and not any slower for me than my flash drive. (the usb plug flips out and on the one I am testing swivels 90° left or right.)
I have not tested this with the larger portable hard drives, but I am sure it should work, (unless it is just the machines I am using).
I like a micro hard drive for the same reason i like flash drives, small size and form factor.
I have seen portable hard drives drop to below the $79.00 for 320 GB mark and be sold in a presently too well know national chain store.
I will be posting some of my results in the hardware section.
Re: Auto run from USB stick?
I don't care about harddrives.
But if one has to install something to get around microsofts foolery, this might be it: http://thefoolonthehill.net/Autorun.htm
But if one has to install something to get around microsofts foolery, this might be it: http://thefoolonthehill.net/Autorun.htm
- Cornflower
- Posts: 244
- Joined: Fri Aug 31, 2007 7:58 am
- Location: Canada's capital
Re: Auto run from USB stick?
An option is USBDLM. It is non-portable, and definitely is non-stealth, but very useful.
It is a service that you can install and uninstall by command-line, and manipulates USB interaction, from assigning specific letters to USB drives, even to specific USB drive by serial number or ID.
It can also do Autoruns from the service.
For example, I have autoruns disabled for security reasons, as does my office. I do not want autorun.inf to be activated, as this is known and can be hacked, but I do want my syncing software to run, but only from my data USB drive. USBDLM can specify that drive and autorun that app. I also have USBDLM set so that if it finds CAFE on teh USB drive in a set spot, to run it, so I have my alternate apps running from the USB as the default app for some extensions.
It is not intuitive, and you have to uninstall/install the service for every change you make manually to the configuration, but it is to date the most powerful USB utility I have found. It just cannot be submitted here.
It is a service that you can install and uninstall by command-line, and manipulates USB interaction, from assigning specific letters to USB drives, even to specific USB drive by serial number or ID.
It can also do Autoruns from the service.
For example, I have autoruns disabled for security reasons, as does my office. I do not want autorun.inf to be activated, as this is known and can be hacked, but I do want my syncing software to run, but only from my data USB drive. USBDLM can specify that drive and autorun that app. I also have USBDLM set so that if it finds CAFE on teh USB drive in a set spot, to run it, so I have my alternate apps running from the USB as the default app for some extensions.
It is not intuitive, and you have to uninstall/install the service for every change you make manually to the configuration, but it is to date the most powerful USB utility I have found. It just cannot be submitted here.
Re: Auto run from USB stick?
Did you check my link?
Seems that is simple.
Seems that is simple.
Re: Auto run from USB stick?
Thanks for mention USBDLM, but changes to the USBDLM configuration do not require a restart or reinstall of the USBDLM service to take effect.Cornflower wrote:An option is USBDLM.
(...)
It is not intuitive, and you have to uninstall/install the service for every change you make manually to the configuration, but it is to date the most powerful USB utility I have found.
Uwe Sieber
Re: Auto run from USB stick?
Ooh, Big Brother
- Cornflower
- Posts: 244
- Joined: Fri Aug 31, 2007 7:58 am
- Location: Canada's capital
Re: Auto run from USB stick?
Wow, that's a lot of keystrokes I could have saved, had I read your documentation better I'll remember for my next configuration changes.usieber wrote: Thanks for mention USBDLM, but changes to the USBDLM configuration do not require a restart or reinstall of the USBDLM service to take effect.
Uwe Sieber
Re: Auto run from USB stick?
What is that btw?Cornflower wrote:if it finds CAFE on teh USB drive in a set spot
- Cornflower
- Posts: 244
- Joined: Fri Aug 31, 2007 7:58 am
- Location: Canada's capital
Re: Auto run from USB stick?
Cafe. http://www.portablefreeware.com/index.php?id=1317
Cafe allows you to temporarily change the double-click defaults when you click on files. For example, I prefer to have CSV files open in Ted Notepad, which is on my USB. The work setup is that CSV opens in MS Excel. CAFE allows me to change it when my USB is connected, but revert it to Excel once I am finished.
Cafe allows you to temporarily change the double-click defaults when you click on files. For example, I prefer to have CSV files open in Ted Notepad, which is on my USB. The work setup is that CSV opens in MS Excel. CAFE allows me to change it when my USB is connected, but revert it to Excel once I am finished.