Skip to main content

Pre/post command problem

Thread needs solution

I am having a strange problem running a pre/post command in ATI.  

I have a folder named "Validation" that I've put on 4 drives - 2 internal drives, an external (USB-attached) drive, and in a NAS share.  The folder contains 2 files:

  • Integrity_check.txt 
  • Integrity_check.bat. 

The bat file contains the single line:
   dir Integrity_check.txt || exit /B 1

I specify
  Command:
      C:\Validation\Integrity_check.bat
  Working directory:
      C:\Validation

That works for drives C & D (my internal drives), and F (my external drive), but it does not work for Z (my NAS share).  For the NAS I have to specify a blank working directory and put the directory in the ,bat files's command:
   dir Z:\Validation\Integrity_check.txt || exit /B 1

Is this intended behavior or have I run into a bug?

 

0 Users found this helpful

Patrick, am I understanding your post correctly here? 

It seems as if you are running:

  Command:
      C:\Validation\Integrity_check.bat
  Working directory:
      C:\Validation

Doing this regardless of the actual drive letters being C, D, F & Z

I would have expected the Command and Working directory to reflect the actual drive where the command is to run from rather than always from C:\Validation ?

In reply to by truwrikodrorow…

Sorry, I wasn't very clear.  Yes, changing the drive letter:

  Command:
     D:\Validation\Integrity_check.bat
  Working directory:
      D:\Validation
etc.

It works as I expected for drives C, D, and F.  For Z I had to specify the drive and directory in the batch file ... and I had to remove the "Working directory" specification from the ATI definition.  The command would fail if I specified a Working directory of "Z:\Validation".

And I forgot to mention that the Test button would indicate success; the command would fail only when executed as part of the schedules backup process.  Unfortunately, ATI didn't say why it failed.