How to force a batch Script to start only after the fisrt one is finished.

In my company I would like to use SMS to push a script to uninstall the old antivirus (Trend Micro) and as soon as it is uninstalled install the new one.
I created two small scripts: the first one uninstall the old antivirus, and the second one install the new one. I tried them as .bat files and they are working fine.
Script 1:
@echo off
start
"c:\Program Files\Trend Micro\OfficeScan Client\NTRmv.exe"

Script 2:
@echo off
start
\\AntivirusServer\OFCSCAN\Autopcc

How can I in one script include those 2 small scripts, so it's like the second one starts as soon as the first one is uninstalled.
So I can push it to my clients using SMS.

Thanks for your help.
divichITAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MikeOM_DBACommented:
divich,
I beleive you posted in the wrong "zone", you may need to post a link on some WinDoze zone to get a better answer.
But maybe it's as simple as this:
 

@echo off
start "c:\Program Files\Trend Micro\OfficeScan Client\NTRmv.exe"
start \\AntivirusServer\OFCSCAN\Autopcc

Open in new window

0
MikeOM_DBACommented:
PS: just add the two lines in one script.
Maybe you need the WAIT option:
 

@echo off
start /WAIT "c:\Program Files\Trend Micro\OfficeScan Client\NTRmv.exe"
start \\AntivirusServer\OFCSCAN\Autopcc

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
divichITAuthor Commented:
Thanks, that's just what I was looking for, so by just adding the WAIT, it will finish the fist one and then start the second.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Shell Scripting

From novice to tech pro — start learning today.