diff --git a/scripts/vs2008/compileAllExamples.bat b/scripts/vs2008/compileAllExamples.bat index c46d33bed5e..0a67581c5ca 100644 --- a/scripts/vs2008/compileAllExamples.bat +++ b/scripts/vs2008/compileAllExamples.bat @@ -1,8 +1,11 @@ :: load the vars file to get access to vcbuild +@echo off echo loading variables +set OLDDIR=%CD% + call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" for /d %%X in (..\..\apps\*) do ( @@ -21,8 +24,6 @@ cd %%X cd ../ ) - -cd ../ ) -cd ../scripts/win_vs2008 \ No newline at end of file +chdir /d %OLDDIR% \ No newline at end of file