Skip to content

Instantly share code, notes, and snippets.

@imbaker
Created April 16, 2015 08:37
Show Gist options
  • Save imbaker/036118c517478ecf83b3 to your computer and use it in GitHub Desktop.
Save imbaker/036118c517478ecf83b3 to your computer and use it in GitHub Desktop.
Batch syntax to check parameters
rem SET Platform = %2
IF "%2" == "" (
REM Note spacing either side of equals is important (don't have it!)
SET Platform=Any CPU
)
echo 1: %1
echo 2: %2
echo 3: %Platform%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment