Robocopy is failing when it is activated by clicking on my "run_bckup.bat" file.
Although the batch file has Admin-privileges, the following line fails: Robocopy "%src%" "%trgt%" .. /B ..
But starting the DOS-Window (open as Administrator) & running the same file "run_bckup.bat" succeeds!!
My Question: Is there a setting that allows me to activate robocopy by clicking on my batch-file, and the flag "/B" is used?
Here are the Robo reports for the 2 cases above.
==== 1. ROBOCOPY REPORT ON "RUNNING BY CLICKING" on "run_bckup.bat" ==== (this method failed)
ERROR : You do not have the Backup and Restore Files user rights. ***** You need these to perform Backup copies (/B or /ZB).
Source : c:\Utils - bckup\ Dest : G:\Utils - bckup\ Files : . Options : . /NFL /S /E /DCOPY:DAT /COPY:DATS /PURGE /B /XO /XA:SHT /R:5 /W:1
--- END OF REPORT 1 --
==== 2. ROBOCOPY REPORT ON RUNNING by OPEN DOS-Window, and then run "run_bckup.bat" ==== (this method succeeded)
Source : c:\Utils - bckup\ Dest : G:\Utils - bckup\ Files : . Exc Files : NTUSER Exc Dirs : AppData Templates Administrator
Options : . /NFL /S /E /DCOPY:DAT /COPY:DATS /PURGE /B /XO /XA:SHT /R:5 /W:1
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 1 0 0 0 0
Files : 19 19 0 0 0 0 Bytes : 31.4 k 31.4 k 0 0 0 0 --- END OF REPORT 2-------------
Thanks, UL