client-side WSH in ASP

Discussion in 'ASP General' started by Karen, Jul 21, 2003.

  1. Karen

    Karen Guest

    Dear all,
    The following code is used to show installed printers on a
    computer,it works on server machine,however, if use a
    client machine to browse, it also shows the intalled
    printers on the server machine.Actaully, what i want to do
    is to show what printers installed on your own machine
    (that means show it on client-side). Do you guys
    understand my problem?Please help please help, this
    problem has already existed for a long time, i really need
    your help!
    <%
    Dim WshNetwork, objPrinters, i
    Set WshNetwork = server.CreateObject("WScript.Network")
    Set objPrinters = WshNetwork.EnumPrinterConnections
    For i = 0 to objPrinters.Count - 1 Step 2
    response.write objPrinters.Item(i+1) & "<br/>"
    Next
    %>

    Thanks a lot!!

    Karen
    Karen, Jul 21, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Boss302
    Replies:
    0
    Views:
    1,024
    Boss302
    Nov 21, 2006
  2. Bogdan
    Replies:
    2
    Views:
    639
    Bogdan
    Jun 9, 2008
  3. Zoe Hart
    Replies:
    1
    Views:
    355
    Scott Wisniewski
    Jan 8, 2004
  4. kyiu

    lost in ASP & WSH!please help!

    kyiu, Jul 11, 2003, in forum: ASP General
    Replies:
    1
    Views:
    141
    Dhananjay Modak
    Jul 11, 2003
  5. JT
    Replies:
    5
    Views:
    131
    Ray Costanzo [MVP]
    Sep 10, 2004
Loading...

Share This Page