Dear all

First of all, thank you for this great tool!

I've checked most of the Torturials, Manuals, and other Documentation, but I wonder whether I could do something similar to this:

Code:

; How many printers are at each site?
$0Printer = ""
$1Printer = "NET1,NET2"
$2Printer = "NET3,NET4,NET5"
$3Printer = "NET6"
;
; Retrieve $NetID here
;
$i = 0
$Printerfound = 0
do
$Pgroup = cstr($i) + "Printer"
if instr($($Pgroup),$NetID) > 0
$Printerfound = 1
else
$i = $i + 1
endif
until ($Printerfound = 1 or $i > 9)
if $Printerfound = 1
for $j = 1 to $i
addprinterconnection("\\"+$NetID+"PS\+"$NetID+"D0"+$j)
next
;


My Problem is now the $($Pgroup) construct which is obviously wrong.

Any ideas and hints are appreciated!

Many thanks and best regards,
HP.


Edited by HP_Rutschmann (2006-08-10 09:57 PM)