Jump to content

Recommended Posts

Posted

I have finally switched fully over to DCS World. My setup includes helios, freetrack, target and now cmd scripts to copy/move files depending on what I fly ie: A10 or BS for helios exports.

 

Now, its getting to be a real pain to start all these programs and batch scripts, does anyone have a program or way to cleanly start and run all these items required to run DCS?

 

One thing I have never managed is to get target to run a config script from the command line, is this possible?

 

thanks.

Posted (edited)

Just write a batch script that calls all the executables. DOS syntax is a bit weird (at least to me), but you should be able to find all that you need in about an hour of querying Dr. Google.

 

Edit: Actually, the Wikipedia entry about batch files is pretty decent and should get you started. If you run into troubles, just drop a line.

Edited by sobek

Good, fast, cheap. Choose any two.

Come let's eat grandpa!

Use punctuation, save lives!

Posted (edited)

thanks for the tips, I'm having a go at a DOS script.

 

In the process I finally figured out running target script via commandline :)

 

edit: got it working really nice.

Thanks to the combined export.lua made it less mucking around also.

 

@echo off
color 0A
title Start DCS World.

echo Welcome, %USERNAME%

echo Start up Freetrack?
set /p choice="Enter your choice: "
if "%choice%"=="n" goto start
start "Starting Freetrack" /B "FreeTrack v2.2.lnk"
ping localhost /n 2
cls

:start
cls
echo Welcome, %USERNAME%
echo What would you like to do?
echo.
echo 1. Start for Black Shark?
echo 2. Start for A10?
echo 3. Start for All other planes?
echo. 
echo 0. Quit
echo.

set /p choice="Enter your choice: "
if "%choice%"=="1" goto BlackShark
if "%choice%"=="2" goto A10
if "%choice%"=="3" goto Generic
if "%choice%"=="0" exit
echo Invalid choice: %choice%
echo.
pause
cls
goto start

:BlackShark
cls
echo BlackShark.
start "Starting Target" /B "C:\Program Files (x86)\Thrustmaster\TARGET\x64\TARGETGUI.exe" -r "C:\ProgMain\DCS World\TM\Cookie-BS2.tmc"
ping localhost /n 2
start "Starting Helios bs2" /B "bs2.lnk"
ping localhost /n 2
rem start "Starting VAC A10" /B "C:\Program Files (x86)\VAC System\VACSystem.exe" SpikeBS2.xml,TRUE
rem ping localhost /n 4
echo.
goto finish

:A10
cls
echo A10.
start "Starting Target" /B "C:\Program Files (x86)\Thrustmaster\TARGET\x64\TARGETGUI.exe" -r "C:\ProgMain\DCS World\TM\Cookie-A10.tmc" 
ping localhost /n 2
start "Starting Helios A10" /B "ac10.lnk"
ping localhost /n 2
rem start "Starting VAC A10" /B "C:\Program Files (x86)\VAC System\VACSystem.exe" DCSA-10.xml,TRUE
rem ping localhost /n 4
echo.
goto finish

:Generic
cls
echo Generic.
start "Starting Target" /B "C:\Program Files (x86)\Thrustmaster\TARGET\x64\TARGETGUI.exe" -r "C:\ProgMain\DCS World\TM\Cookie-A10.tmc" 
ping localhost /n 2
echo.
goto finish

:finish
start "Starting DCS" /B "DCS World.lnk"
exit

 

Feel free to use the code ;)

Edited by spikenet
Posted
Out of curiosity, what is the benefit of this compared to just having these programs run when windows starts? In this day in age, esp. with decent ram amounts and ssds?

 

Idle state power consumption? :D

Good, fast, cheap. Choose any two.

Come let's eat grandpa!

Use punctuation, save lives!

Posted

Especially TARGET, it has a big footprint when running in the background all the time.

i7 7700K | 32GB RAM | GTX 1080Ti | Rift CV1 | TM Warthog | Win 10

 

"There will always be people with a false sense of entitlement.

You can want it, you can ask for it, but you don't automatically deserve it. "

Posted (edited)
Out of curiosity, what is the benefit of this compared to just having these programs run when windows starts? In this day in age, esp. with decent ram amounts and ssds?

 

yes good question and in reality, I could do that for freetrack. However, programs like helios, VAC and target run different profiles depending of what aircraft is flown. So they must be reloaded differently depending on those conditions.

 

I'm pretty happy with this little batch file, it really simplifies it. :)

 

at some point soon I'll bundle all my different profiles for those programs and put them in user files area.

Edited by spikenet
edited
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...