Adding automatic delete function to backup.bat

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
sammyboy15
Posts: 1
Joined: 17 Sep 2017 16:26

Adding automatic delete function to backup.bat

#1 Post by sammyboy15 » 17 Sep 2017 16:31

Hii,

I am Sam and I am new to this Forum.
Some time ago, I made myself a batch file wich makes a back-up of my documents, foto's, etc.
My pc opens it daily and everytime it opens, it makes a new folder in the backup-folder.
I was wondering if you could help me add some code to this file so that it will delete the oldest backup everytime a new back-up is complete.
Thanks in advance! :)

Sam

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Adding automatic delete function to backup.bat

#2 Post by Squashman » 17 Sep 2017 19:42

I don't see any code to help you with.

Post Reply