本文介绍了从USB闪存驱动器自动运行程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在互联网上四处寻找配置闪存驱动器以自动播放位于其根文件夹中的文件的方法,但似乎没有任何作用……

I have been up and down the internet looking for ways to configure a flash drive to auto play a file located in its root folder, and just NOTHING seems to work...

当前,我有一个presentation.html文件,当用户插入USB记忆棒时,无需任何提示即可启动该文件。

Currently, I have a presentation.html file that needs to be started when the user plugs the USB stick in, without any prompt.

我尝试了几种解决方案,并多次确保我的系统上的自动运行已打开。我创建了一个 autorun.inf文件:

I tried several solutions and made sure, multiple times, that my autorun on my system is set on. I created a "autorun.inf" file:

[autorun]
UseAutoPlay=1
ShellExecute=presentation.html
ACTION=View the presentation

,甚至尝试将其配置为调用批处理文件 mybatchfile.bat

and even tried to configure it to call a batch file "mybatchfile.bat"

start presentation.html

似乎什么也没用...每次插入闪存驱动器时,它都会提示我要对文件打开文件夹;播放进行操作使用媒体播放器;等等。,但不会运行presentation.html。

Nothing seems to work... Each time when the flash drive is plugged in, it prompts me as to what I would like to do with the files "open folder; play with media player; etc...", but will not run the presentation.html.

任何建议或提示都将不胜感激。

Any suggestions or tips are greatly appreciated.

推荐答案

这是XP后Windows版本的安全功能。我不确定XP是否也没有。 Windows根本不会在用户不愿意的情况下启动内容。它会一直问你。

It's a security feature of post-XP windows releases. I am not sure whether it wasn't also in XP. Windows simply won't start content without user wanting so. It will always ask you.

这篇关于从USB闪存驱动器自动运行程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 17:36