echo off

rem Create a command line GENERATEVSCMD that looks like this:
rem .\ALVcxprojGenerator.exe --VcxprojFiltersPath=W:\ALGitRepo\ToolsGeneric\Utilities\AL\ALVcxprojGenerator\..\..\..\..\Tsy1\Build\VS\Src.vcxproj.filters --VcxprojPath=W:\ALGitRepo\ToolsGeneric\Utilities\AL\ALVcxprojGenerator\..\..\..\..\Tsy1\Build\VS\Src.vcxproj --SrcPath=W:\ALGitRepo\ToolsGeneric\Utilities\AL\ALVcxprojGenerator\..\..\..\..\Tsy1\Src

rem Create a virtual drive to avoid long paths
subst x: %CD%\..\..\..\..\Tsy1

set Arg1=--VcxprojFiltersPath=x:\Build\VS\Src.vcxproj.filters
set Arg2=--VcxprojPath=x:\Build\VS\Src.vcxproj
set Arg3=--SrcPath=x:\Src
Set ToolPath=.\ALVcxprojGenerator.exe

echo.
echo +++ RunALVcxprojGenerator.bat: +++
echo.

set GENERATEVSCMD=%ToolPath% %Arg1% %Arg2% %Arg3%

echo GENERATEVSCMD %GENERATEVSCMD%

%GENERATEVSCMD%

rem delete the virtual drive after runing the application
subst x: /D