I am having an question Is it possible to make an batch file that read the dir and subdirs and output the results in an specific format into an .txt file?
I know how
EDIT: Small modifications as reply to the comments.
The following two points have been modified:
.
@echo off
setlocal EnableDelayedExpansion
set "base=%CD%"
set "base=%base:*:=%\"
for /R %%a in (*.*) do (
for /F "tokens=1-5 delims=/-. " %%b in ("%%~Ta") do set "dateTime=%%d-%%c-%%b %%e%%f"
set "size= %%~Za"
set name=%%~PNXa
echo !dateTime! !size:~-19! !name:%base%=!
)