Skip to content

Instantly share code, notes, and snippets.

@boushi-bird
Last active August 10, 2016 02:06
Show Gist options
  • Select an option

  • Save boushi-bird/7906843 to your computer and use it in GitHub Desktop.

Select an option

Save boushi-bird/7906843 to your computer and use it in GitHub Desktop.
@echo off
set BASEDIR=%~dp0
set CMDNAME=%0
rem 引数の数チェック 例の場合3つあるか確認
if "%3" EQU "" (
echo "Usage %CMDNAME% <RARAM1> <RARAM2> <RARAM3>"
exit /b 1
)
set PARAM1=%1
set PARAM2=%2
set PARAM3=%3
rem カレントディレクトリを移動
pushd "%BASEDIR%"
rem 設定ファイルの読み込み
call any-conf.bat
exit /b 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment