Jump to content

Recommended Posts

Posted

Pretty simple but I wrote two scripts to enable/disable VR and launch DCS. Just copy the contents into two script files.

 

 

 

DCS_vr-enable.ps1

 

 

 

$options = "$env:userprofile\Saved Games\DCS\Config\options.lua"
(Get-Content $options) -replace '\["enable"\] = false,', '["enable"] = true,' | Set-Content $options
&"$env:ProgramFiles\Eagle Dynamics\DCS World\bin\DCS_updater.exe"

 

 

DCS_vr-disable.ps1

 

 

$options = "$env:userprofile\Saved Games\DCS\Config\options.lua"
(Get-Content $options) -replace '\["enable"\] = true,', '["enable"] = false,' | Set-Content $options
&"$env:ProgramFiles\Eagle Dynamics\DCS World\bin\DCS_updater.exe"

 

 

Instead of launching DCS by the shortcut just right click and run the appropriate script with powershell.

  • Recently Browsing   0 members

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