Before posting, and to avoid disappointment, please read the following:

  • This forum is not for 2BrightSparks to provide technical support. It's primarily for users to help other users. Do not expect 2BrightSparks to answer any question posted to this forum.
  • If you find a bug in any of our software, please submit a support ticket. It does not matter if you are using our freeware, a beta version or you haven't yet purchased the software. We want to know about any and all bugs so we can fix them as soon as possible. We usually need more information and details from you to reproduce bugs and that is better done via a support ticket and not this forum.

Command line

For technical support visit https://support.2brightsparks.com/
Post Reply
Smolokom
Newbie
Newbie
Posts: 2
Joined: Tue Jan 31, 2017 3:59 am

Command line

Post by Smolokom »

I am writing a batch file to decrypt source & destination encrypted containers, then run syncbackpro to back up the unencrypted data, and finally re-encrypt the encrypted containers. SyncBackPro requires a "yes" confirmation from the user to make changes to my PC by Windows User Account Control. I would like this batch file to run without any user input. Having to enter this confirmation (pressing the Yes key) is stopping my batch file from completing. Is there a way to either:
1. command line parameter to run SyncBackPro in a non-administrator mode?, or
2. Echo a "Yes" to the SyncBackPro.exe command line so it will run?
Swapna
2BrightSparks Staff
2BrightSparks Staff
Posts: 993
Joined: Mon Apr 13, 2015 6:22 am

Re: Command line

Post by Swapna »

Hi,

Please note that the User access control (UAC) prompt is from Windows (not SyncBackPro). The reason for receiving UAC prompt is explained here:

http://support.2brightsparks.com/knowle ... permission

- If you do not want the UAC prompt to be displayed, then you can consider creating a non-elevated copy of SyncBackPro as described in the above KB article. However, note that if you run SyncBackPro as non-elevated, certain features may not work. More details here:

http://support.2brightsparks.com/knowle ... d-syncback

- You can also try creating a schedule task for the batch file (in the Windows Task Scheduler) and configure it to run with highest privileges (enable ‘Run with highest privileges’ option in the Task Scheduler)

- Alternatively, you can add commands to encrypt/decrypt data in the Program-Before/After section of SyncBackPro’s profile (instead of running the encrypt/decrypt commands or SyncBackPro from a batch file). However, you may need to ensure the command to decrypt/encrypt can be executed by an elevated process (e.g. SyncBackPro). If you wish you can test the commands first in the Windows command prompt (cmd.exe) in elevated mode (running as an administrator) before testing with SyncBackPro.

- Finally, if you want you can use SyncBackFree (instead of Pro) for the execution of this job, as it does not run elevated.

Thank you.
Smolokom
Newbie
Newbie
Posts: 2
Joined: Tue Jan 31, 2017 3:59 am

Re: Command line

Post by Smolokom »

Thanks for your helpful response! I ended up running separate batch files to encrypt and decrypt in the Program-Before/After section. This also allowed me to use SyncBack's scheduling function, which I already use on my unencrypted data.
Post Reply