脚本的这一部分未设置变量creationYear的值。
set creationYear=dir/T:C %%i | cut -c 7-10
echo %creationYear%显示ECHO已关闭,开始时有@ECHO OFF。
发布于 2015-06-17 14:20:47
for /f "tokens=* delims=" %%# in ('dir/T:C %%i ^| cut -c 7-10') do (
set "creationYear=%%#"
)
echo %creationYear%尽管您可以在没有cut等外部工具的情况下获得创建日期
https://stackoverflow.com/questions/30883233
复制相似问题