Kelsenellenelvian Posted July 9, 2005 Share Posted July 9, 2005 Ok peeps how can I make it so wpi.cmd tells windows to open wpi.hta WITH MSHTA.EXE be it reg file or command. Link to comment Share on other sites More sharing options...
lionhrt Posted July 9, 2005 Share Posted July 9, 2005 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 More sharing options...
Alanoll Posted July 9, 2005 Share Posted July 9, 2005 the simple think to do, would be to actually call the mshta.exe file rather then the HTA file directlystart "" C:\WINDOWS\system32\mshta.exe "wpi.hta"Sort of thing... Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted July 9, 2005 Author Share Posted July 9, 2005 (edited) I can't get that to work. Edited July 9, 2005 by kelsenellenelvian Link to comment Share on other sites More sharing options...
lionhrt Posted July 9, 2005 Share Posted July 9, 2005 (edited) he is not trying to say edit the wpi.cmd to replace:REM Start WPI and wait for its endstart /wait WPI.htawithREM Start WPI and wait for its endstart "" 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 editRemember I know nothing I'm just starting to soak in small amounts of info you are all trying to share. Edited July 9, 2005 by lionhrt Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted July 9, 2005 Author Share Posted July 9, 2005 (edited) It kindof works mshta does start according to my taskmanager (Ihad 58 entries after trying in many different ways) but the wpi interface does not display. Edited July 9, 2005 by kelsenellenelvian Link to comment Share on other sites More sharing options...
Alanoll Posted July 9, 2005 Share Posted July 9, 2005 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 More sharing options...
Kelsenellenelvian Posted July 9, 2005 Author Share Posted July 9, 2005 Hey that got it! Thanx Link to comment Share on other sites More sharing options...
lionhrt Posted July 9, 2005 Share Posted July 9, 2005 Fantastic, nice to this resolved thanks Alanoll, good work.may want to edit your post http://www.msfn.org/board/index.php?showtopic=50304 that a solution has been found.Not that you dont already know kelsenellenelvian to do so.So all I would have to do is make a cmd file from this solution and place it where Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted July 9, 2005 Author Share Posted July 9, 2005 I am just adding it into wpi.cmd. Link to comment Share on other sites More sharing options...
Clint Posted July 9, 2005 Share Posted July 9, 2005 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. Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted July 9, 2005 Author Share Posted July 9, 2005 Nice to have different options. Link to comment Share on other sites More sharing options...
Lost Soul Posted July 9, 2005 Share Posted July 9, 2005 (edited) well you definatly need ie to run a hta file so by removing ie,, id say that not a good thingbut its nice to see a work around for the prob,, nice addition to the setup cmds Edited July 9, 2005 by Lost Soul Link to comment Share on other sites More sharing options...
Clint Posted July 9, 2005 Share Posted July 9, 2005 (edited) well you definatly need ie to run a hta file so by removing ie,, id say that not a good thingbut its nice to see a work around for the prob,, nice addition to the setup cmds<{POST_SNAPBACK}>No, I don't have IE...just the core ..but many ppl believe you actually need IE browser...wich is not true. Edited July 9, 2005 by Clint Link to comment Share on other sites More sharing options...
lionhrt Posted July 9, 2005 Share Posted July 9, 2005 (edited) by adding it to your wpi.cmd you mean on a separate line or are you modifying the line withREM Start WPI and wait for its endstart /wait "" C:\WINDOWS\system32\mshta.exe "%CD%\wpi.hta"???What no one to tell me if this is what you do. heheYa I know wait your turn. Edited July 9, 2005 by lionhrt Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now