1.创建以当前时间命名的文件夹
@echo off echo %date% set current_date=%date:~0,4%%date:~5,2%%date:~8,2% set current_time=%time:~0,2%%time:~3,2%%time:~6,2% set filename=%current_date%%current_time% echo %filename% mkdir %filename%
时间: 2024-11-06 11:32:47
1.创建以当前时间命名的文件夹
@echo off echo %date% set current_date=%date:~0,4%%date:~5,2%%date:~8,2% set current_time=%time:~0,2%%time:~3,2%%time:~6,2% set filename=%current_date%%current_time% echo %filename% mkdir %filename%