Skip to content

Instantly share code, notes, and snippets.

@the-takeo
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save the-takeo/355b20b429e2fb3cb181 to your computer and use it in GitHub Desktop.
Save the-takeo/355b20b429e2fb3cb181 to your computer and use it in GitHub Desktop.
マクロや初期ディレクトリを定義した状態でコマンドプロンプトを起動するパッチファイル
REM ##=============================================================##
REM ## ここに起動時のディレクトリを記述
REM ##=============================================================##
cd %homepath%
REM ##=============================================================##
REM ## ここに起動時に処理したいコマンドを記述
REM ##=============================================================##
C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\WDExpress.exe
REM ##=============================================================##
REM ## ここに登録したいコマンドを記述
REM ##=============================================================##
doskey ls=dir %1
doskey status=git status
doskey adda=git add --all
doskey commit=git commit -m "fix"
doskey push=git push
doskey branch=git branch
REM ##=============================================================##
REM ## 本ファイルの編集用コマンド
REM ##=============================================================##
doskey edit=%windir%\system32\notepad.exe %homepath%\Start_Advanced_Command_Prompt
doskey reload=%homepath%\Start_Advanced_Command_Prompt
cls
%windir%\system32\cmd.exe
@the-takeo
Copy link
Author

ファイルをhomepath直下に保存している想定。
保存場所に応じて修正すること。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment