ARGH! Just saw my mistake the second I sent the email :) [...] Here is the corrected version: --file runagent.cmd begin-- @echo off net start stunnel C:\Program Files\Agent!\Agent32.exe net stop stunnel --file runagent.cmd end-- Sorry for that :) Best regards, Andre