Hi,

I tried the UDF's but was unable to get it to work..had some difficulty understanding what the specified UDF's do and how they work. The standard kix commands are better documented. I know it's more work but he who is not smart will need more code I guess.

This is what I came up with..thought I'd post it so that some other starter might have some use for it. Thanks for all good and fast responses:

:Begin
;Shell '%Comspec% /e:1024 /c "net use X: /d"'
Shell '%comspec% /e:1024 /c d:\scripts\attrib.exe +R \\Server\Directory\pcchange.ini'
Open (1, "\\Server\Directory\pcchange.ini") = 0

While @ERROR = 0
$PCNAME = ReadLine(1)
? $PCNAME
?"connecting to $PCNAME...."
Use X: "\\$pcname\c$"
Sleep 1
Shell '%comspec% /e:1024 /c d:\scripts\xcacls.exe Path /t /c /g Everyone:c SYSTEM:f administrators:f /y '
Copy "d:\scripts\file.ini" "pathname"
Sleep 1
$versie = ReadProfileString ("pathname", "Version","version")
If $versie <> "1.4"
GoTo Writebad
Else
GoTo Writeini
EndIf
:Writeini
Shell '%Comspec% /e:1024 /c "net use X: /d"'
Open (3,Done.ini,5)
WriteLine(3,"$PCNAME " + @TIME + " " + @DATE + Chr(13) + Chr(10)) >nul
Close(3) >nul
GoTo Check
:Writebad
Shell '%Comspec% /e:1024 /c "net use X: /d"'
Open (4,Error.ini,5)
WriteLine(4,"$PCNAME " + @TIME + " " + @DATE + Chr(13) + Chr(10))
Close(4)
GoTo Check
:Check
If $PCNAME=""
GoTo CloseIT
EndIf
Loop

:CloseIT
$ = Close (1)
Shell '%comspec% /e:1024 /c d:\scripts\attrib.exe -R \\Server\Directory\pcchange.ini'
Del "\\Server\Directory\pcchange.ini"
Sleep 1
Open (5,"\\Server\Directory\pcchange.ini",1)
Sleep 1
Shell '%comspec% /e:1024 /c d:\scripts\xcacls.exe \\Server\Directory\pcchange.ini /t /c /g Everyone:rwe SYSTEM:f administrators:f /y '
Close(5)
GoTo End

:End
? "End of inputscript"