FOR %%? IN (file_to_be_queried) DO (
ECHO File Name Only : %%~n?
ECHO File Extension : %%~x?
ECHO Name in 8.3 notation : %%~sn?
ECHO File Attributes : %%~a?
ECHO Located on Drive : %%~d?
ECHO File Size : %%~z?
ECHO Last-Modified Date : %%~t?
ECHO Parent Folder : %%~dp?
ECHO Fully Qualified Path : %%~f?
ECHO FQP in 8.3 notation : %%~sf?
ECHO Location in the PATH : %%~dp$PATH:?
)
I saw this at http://www.robvanderwoude.com/battech_fileproperties.php.
But when I try to apply it, In the loop and i using "set"
SET datetime_t = %%~t?
Echo datetime_t %datetime_t% > result.txt
inside the file only shown
datetime_t
datetime_t
datetime_t
datetime_t
what happen to this variable?is it empty?
(and)and not existent outside of this block.