Hi, i tried to use a item key to call a .batch file to delete and copy a file to one location to another, but i getting this error in the batch execution

the code are this:
echo off
del C:\Users\%USERNAME%\.nuke\preferences13.2.nk
copy /y "C:\Logs\preferences13.2.nk" "C:\Users\%USERNAME%\.nuke\preferences13.2.nk" >nul
hostname
I build βthe key like this (using 1m update interval to run some tests):

The batch file runs fine if executed manually in windows, but for some reason Zabbix cannot find the path
Has someone have this issue or can help solve it ?
Thanks in advance.
β
β
the code are this:
echo off
del C:\Users\%USERNAME%\.nuke\preferences13.2.nk
copy /y "C:\Logs\preferences13.2.nk" "C:\Users\%USERNAME%\.nuke\preferences13.2.nk" >nul
hostname
I build βthe key like this (using 1m update interval to run some tests):
The batch file runs fine if executed manually in windows, but for some reason Zabbix cannot find the path
Has someone have this issue or can help solve it ?
Thanks in advance.
β
β
Comment