file_create.bat
@echo off
setlocal enabledelayedexpansion
REM 日にち取得
set newdate=%date:/=_%
if not exist %cd%\%newdate%\nul (mkdir %cd%\%newdate%)
cd %newdate%
REM 時間取得
set t=%time::=m%
set t=%t:~0,5%
set t=%t:.= %
set t=%t%s
if exist %t%.txt (%t%.txt) else (type %t%.txt >> %t%.txt && %t%.txt)
endlocal
↓現在のディレクトリまでをfor文で表示
REM for %%I in (%CD:\= %) do echo %%I