(How) Can I add a custom script to the autoplay options in Windows 10?

0

Everytime I plug in a certain USB device I usualy need to open a specific webpage to use it.

So I'ld like to do it e.g. in a little batchscript that gets automatically called whenever the device is plugged in.

Unfortunately this is not an option available in the autoplay options of Windows 10.

enter image description here

However, you can see that e.g. during the installation of Dropbox there was an action added to the selection using Dropbox functionality.

So since it seems somehow possible for installers to create an own new entry for autoplay:

Is there any way to add/install/create my custom action to the autoplay options myself?


Please note
I can not install something on the device itself. It has to be on my PC! So I can not use anything that requires e.g. an autorin.inf on the USB drive.

derHugo

Posted 2018-08-29T09:40:41.037

Reputation: 258

Answers

0

Windows 10 does not allow this option any more, because of security. You now need a third-party product for making it work.

Here are a couple of such products :

APO USB Autorun

With this freeware product, you may still use the old-style autorun.inf :

[autorun]
ShellExecute=YOURAPP.exe
UseAutoPlay=1

For more detailed information see the article How to Auto-Run Windows Programs When You Plug In a USB Drive.

USB Drive Letter Manager (USBDLM)

Free for personal and educational use.

You need to create a file named USBDLM.ini in the program’s folder (or rename the sample file) and create an entry AutoRunInf=1 under [Settings]:

[Settings]
AutoRunInf=1

You may then create the matching autorun.inf file on the device.

Read More: How to Make Windows Autorun USB Flash Drives.

harrymc

Posted 2018-08-29T09:40:41.037

Reputation: 306 093

Hm as I mentioned in my question unfortunately it is not an option for me to install something on the USB device itself. Only on my PC. But both options seem to require something put onto the USB device. – derHugo – 2018-08-29T15:27:16.590

I think USBDLM can do that with within its configuration file. I have only looked at it briefly, but I think it at the same place where you identify the USBs and their given drive letters, you can also execute a script/program. See the help. – harrymc – 2018-08-29T15:50:02.753

It seems that it still requires the autorun.inf on the USB drive but of course I'll give it a shot anyway. Thanks so far!! – derHugo – 2018-08-29T16:44:49.443