Auto run appilication while plug in USB drive [closed]

五迷三道 提交于 2021-02-06 05:49:30

问题


I am trying to auto run an application after I've plugged in my USB pen drive. Is there any way to automatically open myappilication.exe from my USB root file, instead of showing the option an list of which applications I'd like to run.


回答1:


Just copy paste from a site that tells how to write an autorun..

Open Notepad

Type in:

[autorun]
open=PStart.exe
action=Run PStart Program
icon=PStart.exe
label=My Portable PC

Save the file as autorun.inf

Put the file in the root of your USB flash drive

The next time you insert your removable drive into your PC, the specified program will autorun from the USB drive

ref: http://blog.shankarganesh.com/2007/08/11/how-to-autorun-programs-from-usb-flash-drive/


my comment about this topic..

as i know there is a flag in registry that enables/disables autorun on flash.

it also enables/disables autorun of other devices

maybe you can search for it..



来源:https://stackoverflow.com/questions/1232966/auto-run-appilication-while-plug-in-usb-drive

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!