Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
I need to copy files from Folder A to that are not present in folder B, that start with the format YYYYMMDD_HH(this is based on the system date)
Also, I need to create the list of the files that had been copied from folder A to Folder B.
I was able to acheive the format for using the script
for /F "tokens=1-4 delims=/- " %%A in ('date/T') do set DATE=%%D%%C%%B
for /F "tokens=1-4 delims=:., " %%a in ('time/T') do set TIME=%%a
SET FILE_SUFFIX=%DATE%_%TIME%I am in a fix on how to use the above variable to copy the files and also create the list of the files copied to a text file.

This forum is for Office applications such as Word, Excel Outlook, etc.
You might get more/better responses if you post your uestion in a forum related to programming or yourOS.
Look at the dropdowns under Speciality Forums & General Forums to find a more appropriate forum.
Good luck!

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |