fhrbc,
Код:
@Echo Off
cls
Set "Fin=Z:\Box_In\тра ля ля 1.txt"
For /f "skip=1 tokens=2 delims=.," %%a in ('2^>nul wmic datafile where "name='%Fin:\=\\%%~nx1'" get 'Last Modified' /format:csv') Do Set "FModiDT=%%a"
For /f "skip=1 tokens=2 delims=.," %%a in ('2^>nul wmic datafile where "name='%Fin:\=\\%%~nx1'" get 'CreationDate' /format:csv') Do Set "FCreaDT=%%a"
Echo Last Modified %FModiDT%
Echo CreationDate %FCreaDT%
pause
GoTo :Eof