Skip to content

Instantly share code, notes, and snippets.

@hokorobi
Created August 26, 2012 12:32
Show Gist options
  • Select an option

  • Save hokorobi/3478551 to your computer and use it in GitHub Desktop.

Select an option

Save hokorobi/3478551 to your computer and use it in GitHub Desktop.
コマンドプロンプトのタイトルへ常にカレントディレクトリを表示する
@title %CD%
@set batchdir=%~dp0
@doskey /macrofile=%batchdir%\start03.bat
@echo off
if %1. == . cd /d %HOMEDRIVE%%HOMEPATH% && goto end
cd /d %1
:end
title %CD%
cd=%batchdir%\start02.bat $*
@hokorobi
Copy link
Copy Markdown
Author

http://japan.zdnet.com/os/analysis/20365625/ に少し手を加えた。

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