Hey kix gurus;
i made this program below all works but i cant do the @error very well.
i dont understand how i can through conditions (see commented out)
how to send the PCname which is $Element (local scope variable)
to its specific failure.txt or success.txt file to
be able to look at the next day on which connections failed and succeeded?
can anyone help me.?
thank you



_______________________________________________________
$FourthAveArray = "ftran1", "ftran2", "ftran3"

For Each $Element In $FourthAveArray


Shell "net use z: \\" + $Element + "\c$"
;if connection error, push pcname to failure.txt
;else if no error push pcname to success.txt
Shell "CMD.EXE /C copy c:\fspcopy\*.mdb z:\fsp\mdb /y"
Shell "CMD.EXE /C time /t"
Shell "net use z: /delete"


Next
_________________________________________________________
_________________________
Robert
A+, CCNA, MCP
Network Admin
Credit Union Wisconsin