Jump to content
Sign in to follow this  
SoCentral2

Audio fails when launching from a shortcut

Recommended Posts

I bought Flight Crew A320 a few days ago, I'm enjoying it and it continues to run well, but ...

... deciding to streamline all my procedures, I'm putting them into Excel. I've created a 'formula' with =HYPERLINK: -

=HYPERLINK("D:\Users\socen\AppData\Local\vPilot\vPilot.exe","vPilot")

This puts 'vPilot' in the cell, I can click on it then after a warning "Some files can contain viruses" blah blah "Would you like to open this file", clicking 'OK' opens Flight Crew A320 as expected and everything works except there's no sound. If I close it and open it through a menu, audio does work.

Any ideas?

Thanks,

Paul.

Edited by SoCentral2
Spelling

Share this post


Link to post
Share on other sites

Hmm, headscratching and a bit of experimentation suggests that no working folder information is being passed. Running a .ps1 file containing: -
Start-Process -FilePath "D:\Program Files (x86)\Flight Crew A320 MSFS/Flight Crew A320_x64.exe" -WorkingDirectory "D:\Program Files (x86)\Flight Crew A320 MSFS"

delivers audio as expected.

Share this post


Link to post
Share on other sites

Even better, pointing the =HYPERLINK to a batch file containing: -

ECHO OFF
CD /D "D:\Program Files (x86)\Flight Crew A320 MSFS"
"D:\Program Files (x86)\Flight Crew A320 MSFS\Flight Crew A320_x64.exe"
EXIT

... works perfectly. 'CD' /D starts the exe with it's own folder as the working folder. 

Share this post


Link to post
Share on other sites

The "method that works" is golden, I'm sure we are in agreement there.

FSUIPC - surely! I've just started with MSFS Addons Linker and that can do it too, but I like the idea of having everything laid out in a list (I'm very listy). Not to mention an obsession with making recalcitrant code comply, even if it's only a lowly Excel formula.

Thanks for the response, back to the plot.

Share this post


Link to post
Share on other sites

hi, any news about that issue?

I use spadnext to open in my case fbw project and PBE and I also have no Audio.
I even tried making a batch file to open the two applications but no audio.

Sure I could open them with the command center or a shortcut on start menu (which works perfectly)
but I connected to open the apps with my selfmade panels. So when i turn on NAV lights, fbw project and PBE would start

thank you

 

Edited by Commander_K

Share this post


Link to post
Share on other sites

with this batch file:

@echo off
cd /d "C:\Program Files (x86)\FS2Crew FBW A32NX"
start "" "C:\Program Files (x86)\FS2Crew FBW A32NX\FS2Crew A32NX Project.exe"

when I execute the batch file by hand I have sound. But when I let spadnext open the batch file, no sound
I am not an expert. What does it mean if I can use shellexecute with the batch?

strange

greetings
 

Share this post


Link to post
Share on other sites

I'm sorry, I have very limited experience working with Batch files.

Try ensuring your Batch file is run with Admin rights:
 

How to run a batch file as Administrator in Windows 10?
  1. Right-click on your batch file.
  2. Click Create Shortcut.
  3. Right-click the shortcut file. Click Properties.
  4. In the Shortcuts tab, click Advanced.
  5. Check the Run As Administrator box.
  6. Click Ok to close the dialog box.
  7. Click on Apply to save the changes.

Share this post


Link to post
Share on other sites

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...