I want to be able to launch one page .hta in 32 bit and 64 bit versions of mshta.exe.
Create the file c: \ page.hta
& lt; Body onclick = "If (Confirm ('Close Onclick')) {self.close ();}" & gt; & Lt; H1 & gt; Test page & lt; / H1> & Lt; Script type = "text / javascript" & gt; Var elem = ["UserAgent =" + window.navigator.userAgent, "platform =" + window.navigator.platform]; Var taBegin = "& text; style = 'width: 100%' rows = '" + ((elem.length + 1) * 1.5) + "'>"; Var taEnd = "& lt; / textarea>"; Document.write (taBegin + elem.join ("\ n") + taEnd); & Lt; / Script & gt; & Lt; / Body & gt; Now the page is batch file to try to load differently.
@echo Closed RIM Launch 32 bit c: \ Windows \ SysWOW64 \ mshta. Exe c: \ page.hta Rim Launch 64 bit c: \ Windows \ System32 \ mshta.exe c: \ page.hta Another interesting thing is, the default handler is notepad Try to change. HTA files If you execute previous orders, and it launches Notepad it appears that MSTA has some logic that only launches .hta by default handler.
Whatever the command is specified, the default handler is used.
Maybe it's an OS version issue? (?) I can not tell, because your XP x 64 is expected.
[edit] I run the code:
run run at run32.bat% WinDir% \ SysWOW64 \ mshta.exe c: \ page.hta run64.bat% WinDir% \ System32 \ mshta.exe c: \ Page.hta Here's what I find:
Comments
Post a Comment