Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.

Start from CMD?


Ryan Savara 1369362
 Share

Recommended Posts

Ryan Savara 1369362
Posted
Posted

Hello,

 

I am trying to start vATIS from the command line, and am getting an error. Here's my start script:

 

start C:\Users\user\AppData\Roaming\vATIS\vATIS.exe

 

And here is the error it throws:

============================================================
RadarContact.vATIS, Version=2.0.6140.23618, Culture=neutral, PublicKeyToken=null
============================================================
Culture     : en-US
OS          : Microsoft Windows NT 6.2.9200.0
Framework   : 2.0.50727.8009
Time        : 03/25/2017 12:32:33
Runtime     : 00:00:00.8173204
METAR       : 
------------------------------------------------------------
Details: A.F: An invalid parameter was p[Mod - Happy Thoughts]ed to the function.
  at A.J.C(String C)
  at A.YS..ctor()
  at A.WS.C()
============================================================

 

It should be noted that it does work as expected when started from the Menu/Explorer. Is there an argument I should be p[Mod - Happy Thoughts]ing through?

Senior Student (S3)

Chicago ARTCC Events Coordinator

Link to comment
Share on other sites

Ross Carlson
Posted
Posted

You probably need to set the working directory to C:\Users\user\AppData\Roaming\vATIS\vATIS.exe before starting the app. (Just a guess, really ... Justin will correct me if my guess is wrong.)

Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

Justin Shannon
Posted
Posted

Yes, Ross is correct. If you try to launch vATIS outside its working directory, then it can't find the components it needs during launch.

 

Instead, use something like this:

 

cd C:\Users\user\AppData\Roaming\vATIS && vATIS.exe

Controller (C3), Los Angeles ARTCC
Developer: xPilot, vATIS

Link to comment
Share on other sites

Ryan Savara 1369362
Posted
Posted

Awesome, thank you Ross and Justin!

Senior Student (S3)

Chicago ARTCC Events Coordinator

Link to comment
Share on other sites

 Share