Aller au contenu principal

ATI 2012 Batch Problem

Thread needs solution

Hello,

I'm backing up my Windows 7_X64_SP1 PC with ATI 2012 to a small QNAP backup station. In ATI-backup I defined a batch file as a pre command. In this batch file I call two programs: TrueCryt to close open Truecrypt volumes and plink... to start a command on the QNAP server. If I start the batch file manually in Windows, everything runs fine, if, I start it from ATI , however, the plink command will not run (message: not found, although plink is in the PATH (/Windows/System32)), but the Truecrypt command is still executed.

I tried to set UAC to lowest level, but nothing changed.

Does anybody have an idea why plink is not starting resp. found?

Many thanks in advance.

Wilfried

0 Users found this helpful

It might help if your reviewed this link as to procedures.
http://forum.acronis.com/forum/38609

In general,
1. Run Notepad as administrator and save the batch file in two differenent ways. IE. Save as *.cmd Save as *.bat
Also check the security or priviliges on the cmd file to make sure it has all the needed permissions. Having the two files gives you something to test from in case the cmd files do not work.

Do include the full path on both commands inside the cmd file.

2. Cmd files seem to have less issues than bat files.

3. Instead of using the windows path if that is part of the path, use the %Windir% example
%WINDIR%\SYSTEM32\SHUTDOWN.EXE /s /t 180 /c "Shutdown in 180 seconds" /d p:4:1

4. In adding the file name to the pre command, use the edit option and browse to the cmd file.
Let TrueImage create its own path to the cmd file.

5. Maybe temporarily add a pause command to the the cmd file so you can see any error messages generated by the cmd file.

6. Maybe the progam needs a delay command in between the two commands.

7. You have your commands inside a batch file which is good. TrueImage cannot handle the same commands loose in the pre command location.
These just mostly general suggestions as it may take expeirmentation on your part until you can make it work.

.

Hi,

nothing of the above helped.

What helped, however, was to move the command plink.exe .... from the folder %WINDIR%\system32 to the foder c:\program files (x86) and adjust the batch script accordingly.

- Wilfried

Thanks for the results posting. Why one wouldn't work and the other did is a mystery.
Grover

I had a similar issue ...

this issue seems to be that probably some "interaction" is assumed by plink.exe.

Adding -batch parameter to the plink seems to have solved my issue.