Batch Programming

liunx

Guest
I wrote this batch file for use in active directory and it seems to work fine, but i wanted to make sure that if the first if statement is false, it should go to the next if statement without the use of an else statement right?? my manager thinks that it will still continue to run even after the exit command..i just need to make sure im correct before I go back and say anything.<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><br />if exist C:\Program Files\Symantec\pcAnywhere\awhost32.exe (<br />    copy \\CRDATA\DEPLOY\PCAhost\pca.pca.cif c:\Docume~1\AllUse~1\Applic~1\Symantec\pcAnyw~1\Hosts\pca.pca.cif <br />    copy \\CRDATA\DEPLOY\PCAhost\pca.bhf c:\Docume~1\AllUse~1\Applic~1\Symantec\pcAnyw~1\Hosts\pca.bhf<br />    regedit /s \\CRDATA\DEPLOY\PCAhost\reg\CautostartPCA.reg<br />    exit<br /><br />)<br /><br />if exist D:\Program Files\Symantec\pcAnywhere\awhost32.exe (<br />    copy \\CRDATA\DEPLOY\PCAhost\pca.pca.cif D:\Docume~1\AllUse~1\Applic~1\Symantec\pcAnyw~1\Hosts\pca.pca.cif <br />    copy \\CRDATA\DEPLOY\PCAhost\pca.bhf D:\Docume~1\AllUse~1\Applic~1\Symantec\pcAnyw~1\Hosts\pca.bhf<br />    regedit /s \\CRDATA\DEPLOY\PCAhost\reg\DautostartPCA.reg<br />    exit<br /><br />)<br />if exist E:\Program Files\Symantec\pcAnywhere\awhost32.exe (<br />    copy \\CRDATA\DEPLOY\PCAhost\pca.pca.cif E:\Docume~1\AllUse~1\Applic~1\Symantec\pcAnyw~1\Hosts\pca.pca.cif <br />    copy \\CRDATA\DEPLOY\PCAhost\pca.bhf E:\Docume~1\AllUse~1\Applic~1\Symantec\pcAnyw~1\Hosts\pca.bhf<br />    regedit /s \\CRDATA\DEPLOY\PCAhost\reg\EautostartPCA.reg<br />    exit<br /><br />)<br /><!--c2--></div><!--ec2-->
</div>
 
Back
Top