windows - MSDOS Scripted directory name with date and time -


i need files creating .zip directory. name of directory must have date(yyyymmdd) , time(hhmmss). below code:

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% 

when run script file name out date (results below). time not come out , need skirt.

in10xml_uploaded_yyyymmdd

i need go out this: in10xml_uploaded_yyyymmdd-hhmmss
how solve problem?


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -