Jump to content

Auto register HTA file?


Recommended Posts


Thats an answser that i would like to know myself mate, for I have trouble when i try incerting the cd into a win98 system. will not open anything , I have to manually open the hta file in order it to load.

Link to comment
Share on other sites

he is not trying to say edit the wpi.cmd to replace:

REM Start WPI and wait for its end

start /wait WPI.hta

with

REM Start WPI and wait for its end

start "" C:\WINDOWS\system32\mshta.exe "wpi.hta"

I could be way off or even set the wrong path.

but unsure if its the wpi.cmd file to edit

Remember I know nothing I'm just starting to soak in small amounts of info you are all trying to share.

Edited by lionhrt
Link to comment
Share on other sites

one moment while i download WPI...

start "" C:\WINDOWS\system32\mshta.exe "%CD%\wpi.hta"

works. MSHTA needs the full path to the wpi.hta file. %CD% is "current directory" and should work in most instances, unless calling the CMD file from another directory. If it runs via Autorun.inf, then it will be fine. Another method, though I'm not sure of how it would work is .\

This is just a work around to the registry problem, because of rights restrictions and such.

Also, C:\Windows = %systemroot% and %windir%. I don't believe %systemroot% is available on a 9x system, but %windir% should be.

Link to comment
Share on other sites

I don't know if I'm shooting blanks here, but when I remove IE and unregister it properly @ T-12, I loose .hta referers to MSHTA.EXE and as a result get a "open with" when WPI are supposed to start.

So I throw this in at the end of my massive reg to get that referer back:

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.hta]
@="hta_auto_file"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\hta_auto_file\shell\open\command]
@="\"C:\\WINDOWS\\system32\\mshta.exe\" \"%1\""

I thought better clutter your post a bit if there is someone out there experience

same problem. :D

Link to comment
Share on other sites

well you definatly need ie to run a hta file so by removing ie,, id say that not a good thing

but its nice to see a work around for the prob,, nice addition to the setup cmds

Edited by Lost Soul
Link to comment
Share on other sites

well you definatly need ie to run a hta file so by removing ie,, id say that not a good thing

but its nice to see a work around for the prob,, nice addition to the setup cmds

No, I don't have IE...just the core ;)

..but many ppl believe you actually need IE browser...wich is not true.

Edited by Clint
Link to comment
Share on other sites

by adding it to your wpi.cmd you mean on a separate line or are you modifying the line with

REM Start WPI and wait for its end

start /wait "" C:\WINDOWS\system32\mshta.exe "%CD%\wpi.hta"

???

What no one to tell me if this is what you do. hehe

Ya I know wait your turn.

Edited by lionhrt
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...