OZONE Asylum
Forums
DHTML/Javascript
Help with VBScript
This page's ID:
28417
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Sorry if this is the wrong forum, don't really see VBScript listed. I need help with mapping printers based on a computers name :) [code]Dim multiPrinter, PrinterLocation1, PrinterLocation2, PrinterLocation3, PrinterLocation4 PrinterLocation1 = "\\023netcdc1\023Lab1HP4200" PrinterLocation2 = "\\023netcdc1\023Lab2HP4200" PrinterLocation3 = "\\023netcdc1\023Lab3HP4050" PrinterLocation4 = "\\023netcdc1\023Lab4HP4200" Set multiPrinter = CreateObject("WScript.Network") multiPrinter.AddWindowsPrinterConnection PrinterLocation1 multiPrinter.AddWindowsPrinterConnection PrinterLocation2 multiPrinter.AddWindowsPrinterConnection PrinterLocation3 multiPrinter.AddwindowsPrinterConnection PrinterLocation4[/code] Is what i have so far, this basicly maps all 4 printers for each site area. Well the idea is to map only 1 printer based on what lab your in, that is ofcourse desernable by your computer name. "023lab4r6w3" and lab1 might have "023lab1r5w2" If they are in lab 2 i want to print only to lab 2, lab 3 printer 3, etc. The breakdown is 023 is the site code, lab1-4 are the labs, r5 means row 5, and w2 means workstation 2. Its at a center for kids, so the learning curve varies quite a bit. Just want it fairly simple so they are not printing to the wrong areas. I know there are other ways to do this but thats not my call, just looking for advice on how this could be done and not how to do it any other way. Thanks in advance for any assistance, [url=http://stansco.com/cgi-bin/nc_ppp.cgi?10076]Synthetic's Chess Player Page[/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »