Mark,

Our naming convention is like this:

Workstation:

XAABBCCC

Printer:

XXXXAABBCC


X= Device Type
A= Building No. (Across the nation)
B= Floor within the building
c= Sequential number of that device
1000 workstations/ 100 printers


So the file for workstation N0207016 (My Machine) looks like this.

code:

[Printers]
; Add the correct printers for the workstation here
Printer1_Install=Yes
Printer1_Path=\\MPRINT003\LW810020701
Printer1_Default=Yes

Printer2_Install=Yes
Printer2_Path=\\MPRINT004\HP4S020701
Printer2_Default=No

Printer3_Install=Yes
Printer3_Path=\\MPRINT004\HPCL020701
Printer3_Default=No

Printer4_Install=Yes
Printer4_Path=\\MPRINT001\LT616010103
Printer4_Default=No

Printer5_Install=Yes
Printer5_Path=\\MPRINT001\LT616010102
Printer5_Default=No

Printer6_Install=Yes
Printer6_Path=\\MPRINT001\LT616010101
Printer6_Default=No

Printer7_Install=Yes
Printer7_Path=\\MPRINT001\LT616010103
Printer7_Default=No


While the script looks like this:

code:

$Share = "\\Server\share$$"
$IniFile = $Share + "\" + @WKSTA + ".ini"
$num = 1
$PrinterNum = "Printer" + $num
$LPTNum = "LPT" + $num + ":"
$DoInstall = ReadProfileString($IniFile, "Printers", $PrinterNum + "_Install")
While $DoInstall <> ""
if $DoInstall = "Yes"
$Printer = ReadProfileString($IniFile, "Printers", $PrinterNum + "_Path")
? "Add $num $Printer"
$RetCode = AddPrinterConnection($Printer)
if $RetCode <> 0
? "Could not add printer $Printer"
else
$Default = ReadProfileString($IniFile, "Printers", $PrinterNum + "_Default")
if $Default = "Yes"
$RetCode = SetDefaultPrinter($Printer)
endif
USE $LPTNum $Printer
endif
endif
$num = $num + 1
$PrinterNum = "Printer" + $num
$LPTNum = "LPT" + $num + ":"
$DoInstall = ReadProfileString($IniFile, "Printers", $PrinterNum + "_Install")
Loop

Hope this makes my previous ramblings a little clearer.