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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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