Jump to content
Sign in to follow this  
GSalden

Need some help from DOS/batchfile specialists

Recommended Posts

Till P3Dv3 the Dolby Cockpit Sounds FSX was working fine  With P3Dv4 I have the issue that it stops repsonding after 10-20 minutes.

As I fly with Prosim I posted my issue there , but unfortunately no one seems to know the answer.

What I did :

  1. Made a LUA script that executes the moment I push a button on my Yoke
  2. Made a batchfile that is being launced by the LUA script and starts Dolby Cockipit Sounds FSX.

Even though the batchfile starts DCS as admin it does not start up completely and all my settings are not there anymore. If I start DCS by mouseclick it starts up perfectly with all my saved settinmgs... 

Here my Topic :  https://prosim-ar.com/forum/viewtopic.php?f=23&t=12650

Perhaps one of you could make my day.

 

Thanks in advance,

Gerard


13900 8 cores @ 5.5-5.8 GHz / 8 cores @ 4.3 GHz (hyperthreading on) - Asus ROG Strix Gaming D4 - GSkill Ripjaws 2x 16 Gb 4266 mhz @ 3200 mhz / cas 13 -  Inno3D RTX4090 X3 iCHILL 24 Gb - 1x SSD M2 2800/1800 2TB - 1x SSD M2 2800/1800 1Tb - Sata 600 SSD 500 Mb - Thermaltake Level 10 GT case - EKWB Extreme 240 liquid cooling set push/pull - 2x 55’ Sony 4K tv's as front view and right view.

13600  6 cores @ 5.1 GHz / 8 cores @ 4.0 GHz (hypterthreading on) - Asus ROG Strix Gaming D - GSkill Trident 4x Gb 3200 MHz cas 15 - Asus TUF RTX 4080 16 Gb  - 1x SSD M2 2800/1800 2TB - 2x  Sata 600 SSD 500 Mb - Corsair D4000 Airflow case - NXT Krajen Z63 AIO liquide cooling - 1x 65” Sony 4K tv as left view.

FOV : 190 degrees

My flightsim vids :  https://www.youtube.com/user/fswidesim/videos?shelf_id=0&sort=dd&view=0

 

Share this post


Link to post

ah the dark arts of batch files! :D

could be something to do with the startup folder?

just before your start command try 'pushing' the startup folder. Also, I'd just simply enclose the whole path in quotes. Can't hurt!

pushd "C:\Program Files (x86)\FSPS\Dolby Cockpit Sounds FSX"
start "C:\Program Files (x86)\FSPS\Dolby Cockpit Sounds FSX\Dolby Cockpit Sounds FSX.exe" 

 

  • Upvote 2

Neil Andrews.

Fight or Flight - YouTube | Twitter

Share this post


Link to post

Thanks guys .

DCS will only work in the Program Files (x86) folder..

Will try your suggestions tomorrow and post back.


13900 8 cores @ 5.5-5.8 GHz / 8 cores @ 4.3 GHz (hyperthreading on) - Asus ROG Strix Gaming D4 - GSkill Ripjaws 2x 16 Gb 4266 mhz @ 3200 mhz / cas 13 -  Inno3D RTX4090 X3 iCHILL 24 Gb - 1x SSD M2 2800/1800 2TB - 1x SSD M2 2800/1800 1Tb - Sata 600 SSD 500 Mb - Thermaltake Level 10 GT case - EKWB Extreme 240 liquid cooling set push/pull - 2x 55’ Sony 4K tv's as front view and right view.

13600  6 cores @ 5.1 GHz / 8 cores @ 4.0 GHz (hypterthreading on) - Asus ROG Strix Gaming D - GSkill Trident 4x Gb 3200 MHz cas 15 - Asus TUF RTX 4080 16 Gb  - 1x SSD M2 2800/1800 2TB - 2x  Sata 600 SSD 500 Mb - Corsair D4000 Airflow case - NXT Krajen Z63 AIO liquide cooling - 1x 65” Sony 4K tv as left view.

FOV : 190 degrees

My flightsim vids :  https://www.youtube.com/user/fswidesim/videos?shelf_id=0&sort=dd&view=0

 

Share this post


Link to post
16 minutes ago, GSalden said:

DCS will only work in the Program Files (x86) folder..

I understand, I meant change your startup folder within the batch file with pushd

https://ss64.com/nt/pushd.html

 

Let us know how you get on!

  • Upvote 1

Neil Andrews.

Fight or Flight - YouTube | Twitter

Share this post


Link to post

This sounds like a permissions issue in Windows. That's why your settings are gone, because it doesn't have permission and/or is run under a diff user(IE default users or public) and also why DOS only runs in programfiles x86.

  • Upvote 1

Share this post


Link to post

Thanks you Neil !

By pushing the folder first it is starting up as it should  :biggrin:


13900 8 cores @ 5.5-5.8 GHz / 8 cores @ 4.3 GHz (hyperthreading on) - Asus ROG Strix Gaming D4 - GSkill Ripjaws 2x 16 Gb 4266 mhz @ 3200 mhz / cas 13 -  Inno3D RTX4090 X3 iCHILL 24 Gb - 1x SSD M2 2800/1800 2TB - 1x SSD M2 2800/1800 1Tb - Sata 600 SSD 500 Mb - Thermaltake Level 10 GT case - EKWB Extreme 240 liquid cooling set push/pull - 2x 55’ Sony 4K tv's as front view and right view.

13600  6 cores @ 5.1 GHz / 8 cores @ 4.0 GHz (hypterthreading on) - Asus ROG Strix Gaming D - GSkill Trident 4x Gb 3200 MHz cas 15 - Asus TUF RTX 4080 16 Gb  - 1x SSD M2 2800/1800 2TB - 2x  Sata 600 SSD 500 Mb - Corsair D4000 Airflow case - NXT Krajen Z63 AIO liquide cooling - 1x 65” Sony 4K tv as left view.

FOV : 190 degrees

My flightsim vids :  https://www.youtube.com/user/fswidesim/videos?shelf_id=0&sort=dd&view=0

 

Share this post


Link to post

One last question.

I also want to start my cockpit apps with a certain affinity, in my case HEX 21 , which is core 0 and core 5.

Dolby Cockopit Surround is working correctly and starts up on core 0 and core 5. 

pushd "C:\Program Files (x86)\FSPS\Dolby Cockpit Sounds FSX"
start /affinity 21 C:\"Program Files (x86)"\FSPS\"Dolby Cockpit Sounds FSX"\"Dolby Cockpit Sounds FSX.exe"

 

However , my other apps startup but use all cores. Eg :

start /affinity 21 /d "C:\ProSim737" Prosim737.exe

I have to use the d command too, otherwise they don't start. I suppose I now have a problem because I have /affinity and /d behind eachother. However , how I can add both commands without issues I have not found out yet.

Any suggestions ?

Thanks,Gerard

 

 

 


13900 8 cores @ 5.5-5.8 GHz / 8 cores @ 4.3 GHz (hyperthreading on) - Asus ROG Strix Gaming D4 - GSkill Ripjaws 2x 16 Gb 4266 mhz @ 3200 mhz / cas 13 -  Inno3D RTX4090 X3 iCHILL 24 Gb - 1x SSD M2 2800/1800 2TB - 1x SSD M2 2800/1800 1Tb - Sata 600 SSD 500 Mb - Thermaltake Level 10 GT case - EKWB Extreme 240 liquid cooling set push/pull - 2x 55’ Sony 4K tv's as front view and right view.

13600  6 cores @ 5.1 GHz / 8 cores @ 4.0 GHz (hypterthreading on) - Asus ROG Strix Gaming D - GSkill Trident 4x Gb 3200 MHz cas 15 - Asus TUF RTX 4080 16 Gb  - 1x SSD M2 2800/1800 2TB - 2x  Sata 600 SSD 500 Mb - Corsair D4000 Airflow case - NXT Krajen Z63 AIO liquide cooling - 1x 65” Sony 4K tv as left view.

FOV : 190 degrees

My flightsim vids :  https://www.youtube.com/user/fswidesim/videos?shelf_id=0&sort=dd&view=0

 

Share this post


Link to post

Doesn't /d just set the startup directory? If this is the case, simply try push'ing again.

pushd "C:\Program Files (x86)\FSPS\Dolby Cockpit Sounds FSX"
start /affinity 21 "Dolby Cockpit Sounds FSX.exe"
popd
pushd "C:\ProSim737"
start /affinity 21 Prosim737.exe

Give that a try? Since you're pushd'ing, you don't need to give the absolute path to the exe because you're already in that folder with pushd. popd is not really needed as it just 'pops' back to the original folder. But it doesn't hurt.

If you pushd c:\ProSim737 then you shouldn't need the /d parameter with the start command.

  • Upvote 1

Neil Andrews.

Fight or Flight - YouTube | Twitter

Share this post


Link to post
16 hours ago, Ebs said:

Doesn't /d just set the startup directory? If this is the case, simply try push'ing again.


pushd "C:\Program Files (x86)\FSPS\Dolby Cockpit Sounds FSX"
start /affinity 21 "Dolby Cockpit Sounds FSX.exe"
popd
pushd "C:\ProSim737"
start /affinity 21 Prosim737.exe

Give that a try? Since you're pushd'ing, you don't need to give the absolute path to the exe because you're already in that folder with pushd. popd is not really needed as it just 'pops' back to the original folder. But it doesn't hurt.

If you pushd c:\ProSim737 then you shouldn't need the /d parameter with the start command.

Thanks again Neil . It is working.

Regards,

Gerard

 

  • Upvote 1

13900 8 cores @ 5.5-5.8 GHz / 8 cores @ 4.3 GHz (hyperthreading on) - Asus ROG Strix Gaming D4 - GSkill Ripjaws 2x 16 Gb 4266 mhz @ 3200 mhz / cas 13 -  Inno3D RTX4090 X3 iCHILL 24 Gb - 1x SSD M2 2800/1800 2TB - 1x SSD M2 2800/1800 1Tb - Sata 600 SSD 500 Mb - Thermaltake Level 10 GT case - EKWB Extreme 240 liquid cooling set push/pull - 2x 55’ Sony 4K tv's as front view and right view.

13600  6 cores @ 5.1 GHz / 8 cores @ 4.0 GHz (hypterthreading on) - Asus ROG Strix Gaming D - GSkill Trident 4x Gb 3200 MHz cas 15 - Asus TUF RTX 4080 16 Gb  - 1x SSD M2 2800/1800 2TB - 2x  Sata 600 SSD 500 Mb - Corsair D4000 Airflow case - NXT Krajen Z63 AIO liquide cooling - 1x 65” Sony 4K tv as left view.

FOV : 190 degrees

My flightsim vids :  https://www.youtube.com/user/fswidesim/videos?shelf_id=0&sort=dd&view=0

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...