Sample
@echo off
for /f "skip=1" %%i in ('wmic os get localdatetime') do if not defined fulldate set fulldate=%%i
set year=%fulldate:~2,4%
set month=%fulldate:~4,2%
set day=%fulldate:~6,2%
set foldername=LOG-%month%-%day%-%year%
md %foldername%
The batch file when click automatically creates a folder with the system date and time as folder name OK done
My question now is how to automatically paste the copied file to the newly created folder? What code is to be added to this batch file? Tried using robocopy [source] [destination] path to md %foldername%.
Does anyone know how to solve this?
![Question :?:](./images/smilies/icon_question.gif)