trying to run batch files before / after a scheduled backup

Disk backup and restore, partition imaging and cloning, and drive copy using R-Drive Image.
Forum rules
Discussion on the R-Drive Image software
ethereal
Posts: 7
Joined: Fri Feb 13, 2015 8:16 am

trying to run batch files before / after a scheduled backup

Post by ethereal » Sat Sep 23, 2017 9:22 pm

i can't get a batch file to start before the scheduled image is made. the pre batch file cleans temp files. and the post batch robocopies to my server.

i was getting r-drive image pre/post snapshot command failed

i moved the batch files to c drive with no spaces that error is gone now - when i run the scheduled task the command window does not open.

i've tried
cmd /c C:\Batch_FIles\Clean_Temp_Files.bat

cmd.exe /c C:\Batch_FIles\Clean_Temp_Files.bat

C:\Batch_FIles\Clean_Temp_Files.bat

cmd /c "C:\Batch_FIles\Clean_Temp_Files.bat"

i'm using windows 10

Alt
Site Moderator
Posts: 2271
Joined: Tue Nov 11, 2008 2:13 pm
Contact:

Re: trying to run batch files before / after a scheduled bac

Post by Alt » Sun Sep 24, 2017 4:22 pm

Do the batch files run alone?
I mean under the account specified on the User/Password panel?

ethereal
Posts: 7
Joined: Fri Feb 13, 2015 8:16 am

Re: trying to run batch files before / after a scheduled bac

Post by ethereal » Mon Sep 25, 2017 6:26 am

yes they ran okay when i tested them - i just can't get them to run in r-drive image

ethereal
Posts: 7
Joined: Fri Feb 13, 2015 8:16 am

Re: trying to run batch files before / after a scheduled bac

Post by ethereal » Tue Sep 26, 2017 7:48 pm

i never did get any satisfactory help here. i'm going to give Iperius Backup a try

Alt
Site Moderator
Posts: 2271
Joined: Tue Nov 11, 2008 2:13 pm
Contact:

Re: trying to run batch files before / after a scheduled bac

Post by Alt » Thu Sep 28, 2017 1:32 pm

We tried various batch files and they worked well. Can you create a test batch file and run it from R-Drive Image? Something like echo "test" >c:\test.txt ?

ethereal
Posts: 7
Joined: Fri Feb 13, 2015 8:16 am

Re: trying to run batch files before / after a scheduled bac

Post by ethereal » Thu Sep 28, 2017 3:23 pm

Iperius Backup ran my batch files - it also has a copy option to copy the backups to a second location. it also has a folder and file copy option.

Alt
Site Moderator
Posts: 2271
Joined: Tue Nov 11, 2008 2:13 pm
Contact:

Re: trying to run batch files before / after a scheduled bac

Post by Alt » Fri Sep 29, 2017 10:35 am

ethereal wrote:Iperius Backup ran my batch files
I'm sure the problems are with the account you're using on the User/Password panel.

Post Reply