PLucas
Member
I know that this is not really a PLC question, but it is slightly related.
At the moment we regularly back up our PLC programs once a month, we do this by remotely controlling the PC connected up to each PLC and downloading the PLC program onto the local PC hard drive. The file on this hard drive is than copied via the PC network to the hard drive on the PC in my office.
I have written a little batch file that will do the copying for me, it runs once a month (via Windoze task scheduler) and places the program files (from the remote PLC) into a set folder on my hard drive. for example: - the PLC program from Rail Mounted Gantry crane 5 is copied to a folder named R05, RMG 10's program is copied to a folder called R10 etc. This works fine, except that on occasions we have had to find and use an older copy of a program because of corruption when the file is initially backed up to the local PC hard drive and the method I have just described over-writes the previous back up, so at times we have ended up with a corrupted file as the only back up.
What I am after is some pointers into writing an application that will do the above, but I would like it to create a folder named after the date the file was copied and place it in the original folder. So for example, RMG 10's program is copied on 10th March 03, so I would like the program files placed in a folder called 10March03 which is placed in the folder called R10.
All help, advise and assistance will be gratefully received.
Paul
At the moment we regularly back up our PLC programs once a month, we do this by remotely controlling the PC connected up to each PLC and downloading the PLC program onto the local PC hard drive. The file on this hard drive is than copied via the PC network to the hard drive on the PC in my office.
I have written a little batch file that will do the copying for me, it runs once a month (via Windoze task scheduler) and places the program files (from the remote PLC) into a set folder on my hard drive. for example: - the PLC program from Rail Mounted Gantry crane 5 is copied to a folder named R05, RMG 10's program is copied to a folder called R10 etc. This works fine, except that on occasions we have had to find and use an older copy of a program because of corruption when the file is initially backed up to the local PC hard drive and the method I have just described over-writes the previous back up, so at times we have ended up with a corrupted file as the only back up.
What I am after is some pointers into writing an application that will do the above, but I would like it to create a folder named after the date the file was copied and place it in the original folder. So for example, RMG 10's program is copied on 10th March 03, so I would like the program files placed in a folder called 10March03 which is placed in the folder called R10.
All help, advise and assistance will be gratefully received.
Paul