Create batch file

View: New views
1 Messages — Rating Filter:   Alert me  

Create batch file

by yohayon () :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I'm looking for someone to generate a batch file which:
1) runs a command (example: copy)
2) If this command successfully completes then it should run another command (example: delete)
3) If this command 1 (copy) is NOT successful then it should broadcast a message to the user's computer via net send saying "error encountered deleting "%filename%"" & not continue with command 2

I have spent hours trying to do this but have failed miserably!