Commit 81eb8a60 authored by Gilles Dubois's avatar Gilles Dubois
Browse files

Add portable scripts

parent 36e24023
@echo off
title OCS Inventory NG Agent for Windows - Cleaning OneShot / Portable Agent
echo.
echo * OCS Inventory NG agent for Windows
echo * Cleaning portable agent
echo.
Rem Don't touch this var unless you know what you are doing ?
set WORK_DIR=%~dp0
Rem Folders
rmdir /S /Q %WORK_DIR%download
Rem Files
del %WORK_DIR%history
del %WORK_DIR%ocsinventory.dat
del %WORK_DIR%ocsinventory.ini
del %WORK_DIR%last_state
\ No newline at end of file
@echo off
title OCS Inventory NG Agent for Windows - Running OneShot / Portable Agent
echo.
echo * OCS Inventory NG agent for Windows
echo * Running portable agent
echo.
Rem Set your server url hee, example : http://myserver/ocsinventory
set OCS_SERVER_URL=http://myserver/ocsinventory
Rem Set your client TAG
set OCS_CLIENT_TAG="MYTAG"
Rem Don't touch this var unless you know what you are doing ?
set WORK_DIR=%~dp0
set FINAL_COMMAND=%WORK_DIR%OCSInventory.exe /server=%OCS_SERVER_URL% /work_dir=%WORK_DIR% /tag=%OCS_CLIENT_TAG%
%FINAL_COMMAND%
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment