Hi everyone. forum newbie here.
I am trying to find a way to interrupt a running batch file. Basically, my reason for this is I have some batch files that carry out a backup process of data. This data is stored across a network and backs up to a seperate server. occasionally certain backups fail to complete 100% due to an intermittent connection (this has been resolved). As a precautionary, I have wrote a script that will monitor the network connection at all times while the backup is running. When it detects an drop in the connection and returns an errorlevel of 1, I want it to interrupt the batch file running the backup until it detects the network and then carry on. I have scoured the net and so far have found nothing so i am thinking this may not be possible, I am also open to using powershell.
Cheers guys.
I am trying to find a way to interrupt a running batch file. Basically, my reason for this is I have some batch files that carry out a backup process of data. This data is stored across a network and backs up to a seperate server. occasionally certain backups fail to complete 100% due to an intermittent connection (this has been resolved). As a precautionary, I have wrote a script that will monitor the network connection at all times while the backup is running. When it detects an drop in the connection and returns an errorlevel of 1, I want it to interrupt the batch file running the backup until it detects the network and then carry on. I have scoured the net and so far have found nothing so i am thinking this may not be possible, I am also open to using powershell.
Cheers guys.