I have a pre-build event as follows:
ver
if %errorlevel% EQU 0 (
REM some code
) else (
REM some code
)
When running this on a mac os machine, ver command throws an error. How can I make this code run on both mac and windows?
I have a pre-build event as follows:
ver
if %errorlevel% EQU 0 (
REM some code
) else (
REM some code
)
When running this on a mac os machine, ver command throws an error. How can I make this code run on both mac and windows?