469,360 Members | 1,728 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,360 developers. It's quick & easy.

client-side WSH in ASP

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
Jul 19 '05 #1
0 1909

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

15 posts views Thread by Michael Rybak | last post: by
2 posts views Thread by Raquel | last post: by
2 posts views Thread by Rhino | last post: by
8 posts views Thread by Ankit Aneja | last post: by
2 posts views Thread by Delmar | last post: by
2 posts views Thread by J Huntley Palmer | last post: by
reply views Thread by khu84 | last post: by
2 posts views Thread by nsaffary | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.