sorry glenn,
not sure what goes in the correct_value is that the value on the right
of the = sign? of pcalias? sorry for not understanding.



 Code:

$PClist = "ftran1", "ftran2", "ftran3"

for each $Element in $PClist

	If ReadProfileString('fsp.ini', 'Ubs', 'pcAlias') <> '$Element'
	$Element = LCase($Element)
  	$Rc = WriteReadProfileString('fsp.ini', 'Ubs', 'pcAlias', '$Element')
	EndIf

next



Edited by itdaddy (2009-12-03 05:44 PM)
_________________________
Robert
A+, CCNA, MCP
Network Admin
Credit Union Wisconsin