Hello Dm4ever,
Thank you for your responds.
I copied the code from my post back to my HTA and it works.
Not sure what happen here.
Just out of curiosity. Can you Shed some light on how to include more than one process in the query?
Thanks,
Hello,
I use this vbscript to kill two processes calc.exe and freecell.exe and it works fine.
But if I convert it into an HTA, it only kills one process.
Does anyone know why?
Thanks,
Here is the script.
‘’’’beginning of the script’’’’
On Error Resume Next
strComputer = "."
arrTargetProcs =...
tsuji,
I got confuse your last suggestion was correct.
I do need to look at the way AddWindowsPrinterConnection Method works.
Thank you for you time,
-C
If I use checkbox the name of the checkbox will be something like checkbox01, checkbox02 checkbox03, etc.
here is what the script look like when I use checkbox.
Thank you,
<Script>
Sub AddPrinterSub
Set Network = CreateObject("Wscript.Network")
If Checkbox01.Checked Then...
The following two methods works very well with .vbs script the error only pop-up when I intergraded into this .hta script. I can change the .hta script to use checkbox instead of button but I really don't want to hard code the StrPrinterPath because we have about 30 network printers on our...
Hi Tsuji,
Thank you for your respond.
I changed the following like you suggested.
> For Each objButton in RadioOption
to For Each objButton in document.GetElementsByName("RadioOption")
I am still getting the printer name is invalid error message.
I even tried to write the objButton.value...
When I run the script the msgbox returned the corrected printer name but the script error out saying the printer name is invaild.
I think the problem is objButton.Value it is not a string, but how can I convert it to be useful string?
Thank you,
Chi
here is my script.
<html>
<head>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.