Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: A backup batch, to save as time and date.  (Read 3609 times)

0 Members and 1 Guest are viewing this topic.

PPowerHouseK

  • Guest
A backup batch, to save as time and date.
« on: February 15, 2011, 07:28:30 AM »
Hello all,

I am currently trying to make a batch file that will backup a folder every 2 hrs and save that folder with the time and date in the name. This way we can have multiple backups, each with a timestamp. My problem is that either my code says crashes just before the backup/copy or it says The syntax of the command is incorrect where it should rename the folder. Here is what I have so far, any help would be greatly appreciated.

Code: [Select]
-snip-
« Last Edit: February 15, 2011, 07:54:44 AM by PPowerHouseK »

PPowerHouseK

  • Guest
Re: A backup batch, to save as time and date.
« Reply #1 on: February 15, 2011, 07:54:27 AM »
Okay i found the problem. I needed to use quotes with my environment variables when renaming. Sorry for wasting your time if you read this.