Windows startup for HTML file

I have an html file on a flash drive that I would like to autostart on Windows. I found examples of several ways to do this, but none of them work for me. Does anyone see what I'm doing wrong?

This is my last attempt:

[autorun]

icon=data/favicon.ico

label=My Project

open=ShellRun.exe OPEN-ME.htm

This was another attempt:

[autorun]
icon=data/favicon.ico
label=My Project
shellexecute=OPEN-ME.html

shell\openme=Learn More About My Project
shell\openme\command=OPEN-ME.html

shell=openme

Some of them work as an icon and shortcut. Just not an automatic start.

0
source share
1 answer

You can try using VBScript or JScript:

  • test.vbs (VBScript):

    Call WScript.CreateObject("WScript.Shell").Run("OPEN-ME.html", 1)
    
  • test.js (JScript):

    WScript.CreateObject("WScript.Shell").Run("OPEN-ME.html", 1)
    

In any case, he should do what you want, as far as I know.

: , ShellRun.exe, , , , ShellRun, Windows. , AutoRun .

0

All Articles