I am having a horrendous time trying to use ReadProfileString properly. I got your code down to the simplest form, and it's still giving me weird stuff back.

Can someone tell me why this code....
 Code:
$printers = Split(ReadProfileString(@ScriptDir + "\test.ini", "Accounting Printers", ""), chr(10))

For Each $printerKey in $printers
	? "Install the " + ReadProfileString(@ScriptDir + "\test.ini", "Accounting Printers", $printerKey)
Next

get $

Would give back this???
 Quote:
Install the Ricoh
Install the Sharp
Install the Brother
Install the Xerox
Install the printer1
printer2
printer3
printer4

For some reason it keeps on spitting out the key names at the end.

This is the INI files I'm using.
 Quote:
[PrintServer]
Printer = ServerName

[Accounting Printers]
printer1 = Ricoh
printer2 = Sharp
printer3 = Brother
printer4 = Xerox