VB to Javascript translation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can anyone translate this VB line of code into javascript? Please, I am pulling my hair out trying to get the thing to work

Shell("rundll32.exe C:\Windows\System32\MSHTML.dll, PrintHTML " & """http://www.microsoft.com""", vbNormalFocus

Thank you
 
Hi Julian,

I thought you cannot.

This is almost the same as starting from a webpage

Shell(Format c:\ ..........)

And that is prevented as far as I know, but maybe someone can tell how you
can format a drive from a webpage.

I hope this helps,

Cor
 
Dr. Julian Menashe,

var oShell = new ActiveXObject("Shell.Application");
oShell.ShellExecute("rundll32.exe C:\Windows\System32\MSHTML.dll, PrintHTML
" & """http://www.microsoft.com""", 1)

Something like that should work in theory. havent tested it but if it
doesn't work take a look at
http://www.midrangeserver.com/mpo/mpo052302-story01.html

--Ryan


Dr. Julian Menashe said:
Can anyone translate this VB line of code into javascript? Please, I am
pulling my hair out trying to get the thing to work!
Shell("rundll32.exe C:\Windows\System32\MSHTML.dll, PrintHTML " &
"""http://www.microsoft.com""", vbNormalFocus)
 
Back
Top