how to get a VBScirpt variable in ASP??
Hi! I have a VBScript code to check the existing printers installed
<script language="VBScript" type="text/VBScript">
Dim objPrinters
Set WshNetwork = CreateObject("WScript.Network")
Set objPrinters = WshNetwork.EnumPrinterConnections
For i = 0 to objPrinters.Count - 1 Step 2
Msgbox objPrinters.Item(i+1)
Next
</script>
However, I want to show the results (objPrinters.Item) on the the ASP webapge, but if i use <%response.write(objPrinters.item())%>, it does not work, it cannot get the VBScript varible, what can i do ???please help and thanks.:(
|