How is this script being launched? Just wondering because of how $sPrinterIni is being set. The '.\' notation can be an issue if not used correctly,

$sPrinterIni=".\PrinterMap.ini"

i would either change it to

Code:

$sPrinterIni= @scriptdir + "\PrinterMap.ini"



or at least make sure the script "knows" where it is right now.

Code:

$sPrinterIni=".\PrinterMap.ini"
if exist($sPrinterIni)
? found it
endif


_________________________
Eric