Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Successfull .Bat file execution

$
0
0

Hi,

I have a .bat file consisting couple of actions /tasks ...

Rem Task 1: Using ImageX to deploy a image stored on USB .

                    Imagex /apply /U:\install.wim /index:3 D:\

Rem Task2 : Copy a folder from USB to D drive

                    xCopy U:\Temp D:\Temp2

Now I want to add some logic into the bat file, for example if a task is interrupted (maybe be source disk is not available or removed, like USB or network resources etc) or there is no folder with name Temp (for example), can  I get a VB message box with saying something went wrong, start again _???


N.A.Malik


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>