插入记忆棒时运行文件 [英] Run a File Whene Plug a Memory Stick

查看:85
本文介绍了插入记忆棒时运行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的朋友代码和我的实践方面的代码

我将Memory Stick连接到文件系统后即可运行

我必须运行autorun.inf
我不需要单击文件或自动播放,我不想成为

一旦连接Memory Stick

My friend code for my project and I''m practical aspects

As soon as I connect Memory Stick to the file system can run

I got to run autorun.inf
I do not need to click on the file or Autoplay I do not want to be

I would run file as soon as the connect Memory Stick

推荐答案

,我会立即运行文件.我认为您所追求的是autorun.inf [^ ]文件.

这使您可以指定插入CD或USB记忆棒时可以执行的操作.在更高版本的Windows上,这将打开一个框,询问用户该怎么做.在早期版本中,它将只执行自动运行文件中的任何操作.

试试看.在USB记忆棒上创建一个新文件,并将其命名为autorun.inf
在记事本或任何其他文本编辑器中打开文件,然后将以下内容放入其中.
I think what you are after is an autorun.inf[^] file.

This allows you to specify actions which can be performed when a CD or USB stick is inserted. On later versions of Windows this will open a box asking the user what to do. On earlier versions it will just do whatever is in the autorun file.

Try it out. Create a new file on the USB stick and call it autorun.inf
open the file in notepad, or any other text editor and past the following into it.
[autorun] 
open=C:\Windows\System32\cmd.exe



拔下USB记忆棒并重新插入,它应该打开命令提示符或要求运行1.

另外,请不要锁定您的问题.这里有些人的英语说得不太好.他们也可能听不懂您的问题,因为您的英语也不太好.
(对不起,如果听起来像是一种侮辱,我只会说一种语言,所以您可能比我做得更好)


再次阅读您的问题后,您似乎想要一种无需使用自动运行即可自动运行的东西.
这不可能.想象一下病毒是否要利用此功能.它可以通过USB记忆棒轻松传播.

实际上有一段时间的病毒利用自动运行中的漏洞来允许此操作,但是此后已对其进行了修补,这是一件坏事.病毒扫描程序会检测到您的USB记忆棒为恶意文件并删除该代码.



Unplug the USB stick and plug it back in and it should either open a command prompt or ask to run 1.

Also, please don''t lock your question. Some people here don''t speak English very well. They may not be able to understand your question because your English is not great either.
(Sorry if that sounds like an insult, I only speak 1 language so you are probably doing better than me)


After reading your question again it seems that you want something that can run automatically without the use of autorun.
This is not possible. Imagine if a virus was to take advantage of this function. It could spread by USB sticks easily.

There was in fact a virus a while back which exploited a flaw in the autorun to allow this, however it has since been patched, and this is a bad thing to do. Virus scanners will detect your USB stick as malicious and delete the code.


我必须让您失望,但是您无法完成您想要的一切.这可以通过autorun.inf完成,但是作为安全策略的一部分,插入USB记忆棒的系统可能已将其关闭. [^ ].

干杯!

—MRB
I must disapoint you, but what you want cannot be done. It could be a done with autorun.inf, but the system where the USB stick gets inserted could have this turned off as part of a security policy[^].

Cheers!

—MRB


这篇关于插入记忆棒时运行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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