I’m making a batch-file which is supposed to run several batch-files. The problem is that it runs the first batch-file, and then quits
echo "Running SharePoint.Access\buildPackageAndCopy.bat..."
call SharePoint.Access\buildPackageAndCopy.bat
echo "Running SharePoint.Admin\buildPackageAndCopy.bat..."
call SharePoint.Admin\buildPackageAndCopy.bat
echo "Running Sharepoint.Levels\buildPackageAndCopy.bat..."
call SharePoint.Levels\buildPackageAndCopy.bat
I’m sure i have an enter-line between all the commands.
This is one of the batch-files I am running
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
cd /d C:\src\SharePoint\
msbuild /p:IsPackaging=True
md c:\temp\_wsp
xcopy Core\bin\Debug\SharePoint.Core.wsp c:\temp\_wsp /y
xcopy Definitions03\bin\Debug\SharePoint.CustomDefinitions01.wsp c:\temp\_wsp /y
xcopy CustomLists02\bin\Debug\SharePoint.CustomLists01.wsp c:\temp\_wsp /y
xcopy Customs01\bin\Debug\SharePoint.CustomPresentation01.wsp c:\temp\_wsp /y
Try commenting out the content of the first batch file and see if the second one now runs. That way you’ll know whether something in the first one is aborting it.