New
#1
Batch file for Autobackup
I have a question regarding a batch file I've been working on to automate some of my daily tasks. I am copying a list of specific network database files from the server onto an external HD. Up until now I've just been manually Ctrl-clicking and dragging them over as a group. Not too difficult, but I thought it might be clever to handle it with an automated task.
I've figured out how to COPY the files from one location to another, but I'm running into problems when I try and create a dated folder to drop them into. I understand that the "mkdir" command will make a file, and I was reading about how to have that file's name be "ddmmyy". My question is how do I write one code which creates the dated folder (preferably with dashes mm-dd-yy) and then copies the files into that newly created folder.
Right now, my code has a static location to copy the files to. I need it to adapt to whatever the file name for that day is. I hope that makes sense.