Help needed to create a batch file

Jul 16, 2018
2
0
10
0
Hello.

I would appreciate some help with creating a batch file. I would like to run a batch file to copy 'my pictures' folder to a usb hard drive, but also create a new folder with the date and copy the pictures into that. Would it also be possible to delete the previous backup created on the usb once the files have been copied over.

I'm trying to help a friend who isn't IT literate backup his 'my pictures' folder to a usb. Appreciate your support with this.

Thanks
 

USAFRet

Titan
Moderator
Mar 16, 2013
110,836
1,375
152,940
18,391
You have to be really really careful, though.

Inserting the wrong USB stick may cause issues.

Step 1. Insert USB
Step 2. Detect USB insertion
Step 3. Delete old backup
Step 4. Copy current contents of "MyPictures" to USB

Step 3 will be bad if it were to delete everything on the USB stick, and you put the wrong one in.
 

ASK THE COMMUNITY

TRENDING THREADS