OK But in the manual it suggests that if the parameter is empty then it'll return all the keys. Anyway, I've worked it out now, the script simply wasn't finding the file! I'm working on a new 2012 server and had forgotten to show all file extensions. So only now do I find out that my .ini file is actually called PrinterData.ini.txt (simple mistake but what a doofus). Right, on with the scripting!!
Sorry! I should read better. I have some difficulties "starting up" after just 4 hours of sleep and a very busy and sort off messed up weekend.
LOL
those pesky .ini.txt files have bitten me also some time ago. A simple mistake but so easy to overlook.
_________________________
Mart
- Chuck Norris once sold ebay to ebay on ebay.