Minesh Shah
asked on
send mail on script failure
Hi Friends,
I have a simple script which makes nw connection, copies files from source to destination & closes the connection.
net use \\destinationpath\IPC$ "passwod" /user:domain\username
robocopy "sourcepath" "\\destinationpath" /MIR /IS
net use \\destinationpath\IPC$ /delete
Idea is to get an email if the above script fails in execution, any advise please...
I have a simple script which makes nw connection, copies files from source to destination & closes the connection.
net use \\destinationpath\IPC$ "passwod" /user:domain\username
robocopy "sourcepath" "\\destinationpath" /MIR /IS
net use \\destinationpath\IPC$ /delete
Idea is to get an email if the above script fails in execution, any advise please...
do you have a CLI mail command?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Hoffmann,
we use windows servers.
we use windows servers.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok