Get modification Time and Filename
Posted: 22 Jun 2021 22:07
Hello
I would like to determine the date of modification and the filename of a directory.
I already get the date, but with the variable %% i I get the full UNC path.
But I only need the * .pvx file names without \\Sharename\xyz\123\xxx 123\
My Test Batch
I hope that someone could give me a tip here
Many Thanks
I would like to determine the date of modification and the filename of a directory.
I already get the date, but with the variable %% i I get the full UNC path.
But I only need the * .pvx file names without \\Sharename\xyz\123\xxx 123\
My Test Batch
Code: Select all
for /F "delims=" %%i in ('"dir /s /b /a-d "\\Sharename\xyz\123\xxx 123\*.pvx" "') do (echo set file_date=%%~ti %%i )
Many Thanks