Jump to content

.bat how to copy specific files in a folder


smurfexe

Recommended Posts

hi, im trying to make a batch script that copies my backups to a diffrent pc. the issue is i cant find a way to only upload the new files. 

 

this is what i have so far but this only copies (Backup-world-2022-7-18--19-05.zip) if you look at the screenshot that is attached you can see that all backups have a date at the end. and im trying to only upload the latest backup without changing the script everyday. i tried to use (Backup-world*.zip) but this copied all backups. does anyone know a solution for this?

copy "C:\Users\server\Desktop\1.19 werkend\backup\world\Backup-world-2022-7-18--19-05.zip"  \\UWU\minecraftbackups
 

 

Screenshot_1.png

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...