IF EXIST c:\idesktop_agent\conf\agent.properties goto :end echo installing... msiexec.exe /i "%1" CUSTOMER.ID="0" SERVER="192.168.1.100" PORT="9010" :end