Well, that all looks good.

Most likely problem is that the script is not finding the section in the INI file.

Check the file name, and make sure that Notepad (or whatever you used) has not added a ".txt" or ".doc" suffix. Check it by using DIR at the command line rather than Explorer which may hide the extensions.

You must use a simple text editor like Notepad to create the file - if you use Wordpad or Word or similar then it will add a load of garbage which will mean that the file cannot be interpreted properly.

To check if the script can see the file and it is ok, add the following just after the "$sPrinterIni=".\PrinterMap.ini"" line:
Code:
If ReadProfileString($sPrinterIni,"","")
If $bDEBUG
"DEBUG: The following sections appear in the INI file:" ?
"-----------------------------------------------------" ?
ReadProfileString($sPrinterIni,"","")
"-----------------------------------------------------" ?
EndIf
Else
If Exist($sPrinterIni)
"ERROR: INI file '"+$sPrinterIni+"' is empty or invalid!" ?
Else
"ERROR: INI file '"+$sPrinterIni+"' does not exist!" ?
EndIf
Exit 1
EndIf