thank you for replying
eriqjaffe
do i really need the if/endif condition? since
when it finds it it is going to write to and move
on due to the for each/next loop? just curious wha you think?

 Code:
for each $Element in $PClist
    $array = ReadFile("fsp.ini")
    $loc = AScan($array, "pcAlias=",,,1)
    $array[$loc] = "pcAlias="+$Element
    $ = WriteFile("fsp.ini",$array)
    copy fsp.ini to \\$Element\c$\Windows\    ;my psuedocode
next


eriqjaffe

does this makes sense?




Edited by itdaddy (2009-11-25 09:32 PM)
_________________________
Robert
A+, CCNA, MCP
Network Admin
Credit Union Wisconsin