Description: |
call:fprop filename prop ret |
Script: |
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13.
|
:fprop filename prop ret -- returns a file property
:: -- filename [in] - file name
:: -- prop [in] - property, i.e.: d p n x a f s t z
:: -- ret [out] - return value
:$created 20060101 :$changed 20080219 :$categories FileInfo
:$source https://www.dostips.com
SETLOCAL
set ret=
for %%a in ("%~1") do set ret=%%~%~2a
( ENDLOCAL & REM RETURN VALUES
IF "%~3" NEQ "" (SET %~3=%ret%) ELSE echo.%ret%
)
EXIT /b
|
|