我需要通过创建.zip目录来备份文件。目录名称必须包含日期(YYYYMMDD)和时间(HHMMSS)。以下是我的代码:
set folder_files_rar=C:\Program Files\zip
set folder_save_files=in10xml_uploaded
set datetime =%date:~6.4%%date:~3.2%%date:~0.2%%time:~0.2%%time:~3.2%% time:~6.2%
set xml_uploaded_folder=C:\xml\UPLOADED
Set xml_uploading_folder=C:\xml\UPLOADING
Set xml_files_extension=xml
cls
CD\
cd "%% folder_files_rar"
rar m% xml_uploaded_folder% \% folder_save_files% _% datetime% .rar% xml_uploading_folder% \ *.% xml_files_extension%
当我仅使用日期运行此脚本文件名时(结果如下)。时间不出来,需要她的裙子。
in10xml_uploaded_YYYYMMDD
我需要你这样出去:in10xml_uploaded_YYYYMMDD-HHMMSS
我该如何解决这个问题?