Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: nkntb
  • Order by date
  1. nkntb

    Can't terminate two processes using HTA

    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,
  2. nkntb

    Can't terminate two processes using HTA

    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 =...
  3. nkntb

    using HTA to add network printer

    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
  4. nkntb

    using HTA to add network printer

    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...
  5. nkntb

    using HTA to add network printer

    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...
  6. nkntb

    using HTA to add network printer

    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...
  7. nkntb

    using HTA to add network printer

    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>...
  8. nkntb

    vbscript to create desktop wall paper

    How can I create a bitmap file showing the computername and use it as desktop wall paper? Any help would be greatly appreciated. Thank you,

Part and Inventory Search

Back
Top