Glenn you would be pround of your dumb code monkey(hee hee)
I looked at the kix manual for WriteReadProfileString()
and took out the 'Read' and it works ;\)
hahhaa
you the man glenn now take care of that headache! ahah
thanks fortaking your time to help me;) really
glenn this works perfect thanks
some day I hope I am as good as you are probably not
but I will try ;\)
 Code:
$PClist = "ftran1", "ftran2", "ftran3"

for each $Element in $PClist
	$Element = LCase($Element)
	? $Element
  	$Rc = WriteProfileString('C:\KIX\fsp.ini', 'Ubs', 'pcAlias', $Element)
	sleep 20

next



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