Here is a handy batch file for starting the dedicated.. I use it with http://www.nick.rozanski.org.uk/inde...tware#srvstart for keeping the server running even after it crashes constantly. It keeps good logs and rotates them so they never get too big. Hope this is helpful to someone.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
&#58;&#58; Arma server and logging helper - by oktane + some parts BIS wiki
&#58;&#58; Please create a &#39;Profiles&#39; and &#39;Logs&#39; directory inside of your arma folder before running.
&#58;&#58; Note&#58; Logs only get copied when server is run again, use a service to automatically restart this file


&#58;&#58; exename of this server instance &#40;NO .exe&#41; &#40;ex&#58; arma_server or arma_server2302 if you renamed it for taskmgr&#41;
set _exename=arma_server

&#58;&#58; root drive of game servers directory - &#40;NO TRAILING BACKSLASH&#41; &#40;ex&#58; d&#58;&#41;
set _drive=D&#58;

&#58;&#58; root servers directory &#40;not arma directory&#33;&#41; &#40;MUST HAVE TRAILING BACKSLASH&#41; &#40;ex&#58; servers&#92;&#41;
&#58;&#58; if you dont have a d&#58;&#92;servers&#92;armainstall1, armainstall2, armainstall3, you can leave it blank.
set _serversdir=servers&#92;

&#58;&#58; arma directory name of this server instance, name only - &#40;NO BACKSLASHES&#41; &#40;ex&#58; ArmaPublic or Arma&#41;
set _dirname=ArmaPublic

&#58;&#58; port this server instance runs on &#40;ex&#58; 2302&#41;
set _port=2302

&#58;&#58; profile name that the server should use for difficulty settings &#40;located in _serverdirname&#92;_dirname&#92;Profiles&#92;Users &#41;
&#58;&#58; if the profile does not exist, arma will create it with default settings.
set _profilename=server

&#58;&#58; mods you want the server to run &#40;ex&#58; @DurgsVegFix;@EVH&#41;
&#58;&#58; WARNING this cannot be blank, if you dont have mods, see the end of the file.
set _mods=@Required;@ECS;@DurgsVegetationFix;@mod1;@mo d2;@mod3

&#58;&#58; END OF CONFIGURATION -------------------------------------------------------------------------------

&#58;&#58; kill it if its running &#40;if you run multiple servers on same machine, use different EXE names&#33;&#41;
taskkill /f /im %_exename%.exe

&#58;&#58; change drive and go to directory
%_drive%
cd &#92;%_serversdir%%_dirname%

for /F &#34;tokens=1-3,5-8 delims=/&#58;. &#34; %%a in &#40;&#34;%TIME% %DATE%&#34;&#41; do &#40;set _dt=%%g%%e%%f%%d-%%a%%b%%c&#41;

move net.log &#34;.&#92;Logs&#92;%_dt%_net.log&#34;
move .&#92;profiles&#92;%_exename%.RPT &#34;.&#92;Logs&#92;%_dt%_%_exename%.RPT&#34;
move .&#92;profiles&#92;%_exename%.bidmp &#34;.&#92;Logs&#92;%_dt%_%_exename%.bidmp&#34;
move .&#92;profiles&#92;%_exename%.mdmp &#34;.&#92;Logs&#92;%_dt%_%_exename%.mdmp&#34;
move .&#92;profiles&#92;server_console.log &#34;.&#92;Logs&#92;%_dt%_server_console.log&#3 4;


&#58;&#58; Run the server.. only choose one line. You can add any other switches you want, like -netlog

&#58;&#58; uncomment below for normal operation
&#34;%_drive%&#92;%_serversdir%%_dirname%&#92;%_ex ename%.exe&#34; -port=%_port% -cfg=basic.cfg -config=server.cfg -name=%_profilename% -profiles=%_drive%&#92;%_serversdir%%_dirname%&#92; Profiles&#92; -mod=%_mods%

&#58;&#58; uncomment below for normal operation with NO MODS
&#58;&#58;&#34;%_drive%&#92;%_serversdir%%_dirname %&#92;%_exename%.exe&#34; -port=%_port% -cfg=basic.cfg -config=server.cfg -name=%_profilename% -profiles=%_drive%&#92;%_serversdir%%_dirname%&#92; Profiles&#92;

&#58;&#58; uncomment below for testing.. virgin with no mods, no basic.cfg and empty test profile
&#58;&#58;&#34;%_drive%&#92;%_serversdir%%_dirname %&#92;%_exename%.exe&#34; -port=%_port% -config=server.cfg -name=test -profiles=%_drive%&#92;%_serversdir%%_dirname%&#92; Profiles&#92;
[/QUOTE]