我想获取当前时间并使用时间名称创建一个文件夹。如何将时间提取到变量中?
SET %%DESTINATIONDIRROOT = "I:\directory\"
SET %%DESTINATIONDIRSEPERATOR = "\"
SET %%DESTINATIONDIR = TIME
for /F "usebackq delims=" %%b IN (`DIR /B /S /A "C:\RandomTestFiles\*.*"`) DO @(
XCOPY /Y "%%~b" %%DESTINATIONDIRROOT%%DESTINATIONDIR%%DESTINATIONDIRSEPERATOR
)