Provide the complete path to the .INI file and try this modified code:
Code:

$ini='d:\printer.ini'
$printers=split(readprofilestring($ini,'Printers',''),chr(10))
for each $printer in $printers
$users=split(join(split(readprofilestring($ini,'Printers',$printer)),''),',')
if ascan($users,@USERID)+1
? @USERID+' gets printer '+$printer
endif
next



Edited by sealeopard (2004-03-11 07:03 PM)
_________________________
There are two types of vessels, submarines and targets.