如何在Windows 7中通过闪存驱动器使用自动运行来打开网页? [英] How to use autorun in Windows 7 from a Flash drive to open a webpage?

查看:119
本文介绍了如何在Windows 7中通过闪存驱动器使用自动运行来打开网页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在想出一种方法来自动运行USB闪存驱动器上托管的一系列HTML页面。这些都是静态页面,并且都链接到闪存驱动器根目录中的index.html。

I've been trying to come up with a way to autorun a series of HTML pages that are hosted on a USB Flash Drive. These are all static pages, and are all linked to index.html in my flash drive's root.

我尝试设置如下所示的autorun.inf文件:

I tried setting up an autorun.inf file like this:

[autorun]
open=index.html

我也尝试过以下操作:

[autorun]
shellexecute=index.html

我已经尝试过:

[autorun]
open=wscript.exe autorun.vbs

其中autorun.vbs如下:

where autorun.vbs looks like this:

Call WScript.CreateObject("WScript.Shell").Run("index.html", 1)

到目前为止,我还没有运气让应用程序甚至显示在自动运行对话框中。我什至有一个更强大的autorun.inf与此类似:

So far, I've had no luck in getting the application to even show up on the autorun dialog. I even had a more robust autorun.inf similar to this one:

[autorun]
shellexecute=index.html
label=Test Application
action=Start Test Application
shell\start=Start Application
shell\start\command=index.html
shell=start

我以多种不同的配置切换了各种shellexecute / open命令。然后,我在研究过程中偶然发现了一个页面,上面写着 Windows 7不再支持闪存驱动器中的autorun.inf。但是我找不到其他信息。

I switched out various shellexecute/open commands in a number of different configurations. I then stumbled upon a page during my research that said "Windows 7 no longer supports autorun.inf from flash drives." but there was no other information about this that I could find.

任何人都有解决方案吗?我只想插入闪存驱动器,并在没有其他用户输入的情况下打开网页。如果我必须处理带有显示页面按钮的自动播放对话框,那也可以。

Anyone have a solution? I only would like to insert the flash drive and have the webpage within opened without other user input. If I have to deal with an autoplay dialog that has a "Display page" button, that would also be fine.

编辑:我也尝试了此链接:用于HTML文件的Windows自动运行,但也无法正常工作。

I also tried this link: Windows Autorun for an HTML file but it did not work either.

推荐答案

如我的评论所述,Windows不再允许这样做。这是以前的堆栈溢出文章:

As stated in my comment, windows no longer allows this. Here is a previous Stack Overflow article:

通过USB闪存驱动器自动运行程序

和另一个:

http ://www.addictivetips.com/windows-tips/autorun-inf-does-not-work-in-windows-7-anymore/

要允许自动播放,请在此处编辑设置:

To allow autoplay edit your settings here:

控制面板->所有控制面板项->自动播放

Control Panel->All Control Panel Items->AutoPlay

这篇关于如何在Windows 7中通过闪存驱动器使用自动运行来打开网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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