@echo off

for %%p in (".") do pushd "%%~fsp"

cd /d "%~dp0"

set _OLDPATH=%PATH%

set PATH=%~dp0perl\bin;%PATH%



perl\bin\glpi-agent.exe perl\bin\glpi-agent --conf-file=etc/agent.cfg %*



set PATH=%_OLDPATH%

set _OLDPATH=

popd

