插入usb时自动执行命令.., [英] Auto execute command when you plug a usb..,

查看:189
本文介绍了插入usb时自动执行命令..,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题所说:

我的理念是:如果我插入一个USB驱动器,它将自动执行某个命令,例如 show usb驱动器的所有文件和文件夹 ...

As the title says:
My concept is: if I plug a usb Drive it will automatically execute a certain command such as to show all the files and folders of the usb drive...

推荐答案

您有两种选择:

1.编写一个AUTORUN.INF文件,就像你为CD写的一样。请参见 http://visualdesigning.com/autorun-usb/ [ ^ ];管理员可以禁用此功能,但右键单击菜单应包含自动运行选项。



2.在根文件夹中写入错误的.lnk文件,如下所述: http://blogs.technet.com/b/markrussinovich /archive/2011/03/30/3416253.aspx [ ^ ];向下滚动到''Stuxnet Infection Vector''。



希望这会有所帮助,

Pablo。
You have two options:
1. Write a AUTORUN.INF file, like the one you would write for a CD. See http://visualdesigning.com/autorun-usb/[^]; administrators can disable this functionality, but the right-click menu should include the ''autorun'' option.

2. Write a misformed .lnk file in the root folder, as described here: http://blogs.technet.com/b/markrussinovich/archive/2011/03/30/3416253.aspx[^]; scroll down to ''The Stuxnet Infection Vector''.

Hope this helps,
Pablo.


您好,



您可以使用Windows操作系统的自动运行功能。打开记事本&复制+粘贴以下代码。

Hello,

You can use autorun feature of Windows OS. Open notepad & copy+paste following code.
[autorun]
open=YOUR_PROGRAM.EXE
icon=YOUR_PROGRAM.EXE, 0
label=YOUR LABEL



以下文章还将帮助您了解有关此功能的更多信息。

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆