[HTA] How to hide the CMD prompt on HTA Script ?

Batch, ASP, JScript, Kixtart, etc.
This topic is 11 years and 7 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
hackoo
Posts: 84
Last visit: Thu Aug 01, 2013 7:58 pm

[HTA] How to hide the CMD prompt on HTA Script ?

Post by hackoo »

Hi !
I wonder if there are any tricks or tips can be done to hide the CMD prompt when I execute this HTA script?
Thank you !
http://www.paulsadowski.com/wsh/Trace.hta.htm


Traceroute





set objShell = CreateObject("WScript.Shell")
strOut=""

sub traceroute
cmdarg="%comspec% /c tracert.exe " & T1.value
set objExCmd = objShell.Exec(cmdarg)

strOut=objExCmd.StdOut.ReadAll

Set regEx = New RegExp
regEx.Pattern = "[fnrv]+"
regEx.Global = True
regEx.Multiline = True
strOut = regEx.Replace(strOut, "")
TraceOut.innerHTML= strOut
end sub
//-->

Traceroute HTA by Paul R. Sadowski (11/2001)
Hostname:




This topic is 11 years and 7 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked