Last active
August 29, 2015 14:03
-
-
Save the-takeo/355b20b429e2fb3cb181 to your computer and use it in GitHub Desktop.
マクロや初期ディレクトリを定義した状態でコマンドプロンプトを起動するパッチファイル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ファイルをhomepath直下に保存している想定。
保存場所に応じて修正すること。