[[TracNav(TracNav/TOCInfo|noreorder)]] '''Example of a .cmd-script''' *This is unsupported user provided content, if you have issues you are on your own :) * '''\\SERVER\SHARE$ is where you keep the script, RoboCopy and the NSClient++ files'''[[BR]] @echo off[[BR]] echo map drive[[BR]] net use I: \\SERVER\SHARE$\NSClient++ /persistent:no [[BR]] I:[[BR]] echo.[[BR]] echo Install NSClient++[[BR]] if not exist "C:\Program Files\NSClient++\NSClient++.exe" goto skip01[[BR]] echo removing old version[[BR]] "C:\Program Files\NSClient++\NSClient++.exe" /stop[[BR]] "C:\Program Files\NSClient++\NSClient++.exe" /uninstall[[BR]] rmdir /s /q "C:\Program Files\NSClient++[[BR]] [[BR]] :skip01[[BR]] echo.[[BR]] echo install latest version[[BR]] mkdir "C:\Program Files\NSClient++[[BR]] I:\robocopy /MIR I: "C:\Program Files\NSClient++"[[BR]] "C:\Program Files\NSClient++\NSClient++.exe" /install[[BR]] "C:\Program Files\NSClient++\NSClient++.exe" /start[[BR]] c:[[BR]] echo.[[BR]] echo Unmap drive[[BR]] net use I: /DELETE[[BR]] [[BR]]