Automatic Mount Request Aborting

Dear colleagues,

I've changed default script mount.bat to ensure automatic mount request aborting.

I've read all existing discussions, but I didn't found similar case.

Unfortunately it doesn't work. Could you please help me to figure out the reason?

Please kindly find content of batch file:

- - -

set THIS=%%0
set USER=%%1
set GROUP=%%2
set HOSTNAME=%%3
set STARTPID=%%4
set DEVNAME=%%5
set DEVHOST=%%6
set DEVFILE=%%7
set DEVCLSS=%%8
set DEVCLASSNAME=%%9
shift
shift
shift
shift
shift
shift
shift
shift
shift
set MEDID=%%1
set MEDLABEL=%%2
set MEDLOC=%%3
set POOLNAME=%%4
set POLICY=%%5
set MEDCLASS=%%6
set MEDCLASSNAME=%%7
set SESSIONKEY=%%8

omniabort -session %SESSIONKEY%

- - - End of content - - -

Log file:


C:\Program Files\OmniBack\bin>set THIS=%0

C:\Program Files\OmniBack\bin>set USER=%1

C:\Program Files\OmniBack\bin>set GROUP=%2

C:\Program Files\OmniBack\bin>set HOSTNAME=%3

C:\Program Files\OmniBack\bin>set STARTPID=%4

C:\Program Files\OmniBack\bin>set DEVNAME=%5

C:\Program Files\OmniBack\bin>set DEVHOST=%6

C:\Program Files\OmniBack\bin>set DEVFILE=%7

C:\Program Files\OmniBack\bin>set DEVCLSS=%8

C:\Program Files\OmniBack\bin>set DEVCLASSNAME=%9

C:\Program Files\OmniBack\bin>shift

C:\Program Files\OmniBack\bin>shift

C:\Program Files\OmniBack\bin>shift

C:\Program Files\OmniBack\bin>shift

C:\Program Files\OmniBack\bin>shift

C:\Program Files\OmniBack\bin>shift

C:\Program Files\OmniBack\bin>shift

C:\Program Files\OmniBack\bin>shift

C:\Program Files\OmniBack\bin>shift

C:\Program Files\OmniBack\bin>set MEDID=%1

C:\Program Files\OmniBack\bin>set MEDLABEL=%2

C:\Program Files\OmniBack\bin>set MEDLOC=%3

C:\Program Files\OmniBack\bin>set POOLNAME=%4

C:\Program Files\OmniBack\bin>set POLICY=%5

C:\Program Files\OmniBack\bin>set MEDCLASS=%6

C:\Program Files\OmniBack\bin>set MEDCLASSNAME=%7

C:\Program Files\OmniBack\bin>set SESSIONKEY=%8

C:\Program Files\OmniBack\bin>omniabort -session %8
[42:4] Cannot connect to required session %8.

- - - End of LOG file - - -

Thank you in advance.

KR,

Konstantin