Is there a way to use a FastLaunch parameter in the batch file?

  • eracer59
  • Topic Author
More
2 years 3 months ago #1 by eracer59 Is there a way to use a FastLaunch parameter in the batch file? was created by eracer59
I installed ReShade, and it's working fine.  The batch file starts the injector, then launches MSFS.  The Home key opens the shader windows.  All good.
But I want to use the -FastLaunch parameter that I add to the batch files I create (not using PS scripts.)  I can't access the .exe file in the MS-Store version to add that parameter. And if I add that parameter to end of Start-Process -filepath explorer.exe shell:appsFolder\Microsoft.FlightSimulator_8wekyb3d8bbwe!App the batch file stops running and MSFS does not launch.
Is there a way to add it to the ReShade batch file so I can bypass the launch videos?
I don't really know PowerShell well.  Could I just replace the 'Start-Process' cmdlet with @Start ?

The Reshade batch file looks like this:

cd %UserProfile%\ReshadeInjectUWP
cmd /c powershell -windowstyle hidden -Command Start-Process -filepath inject.exe FlightSimulator.exe; Start-Process -filepath explorer.exe shell:appsFolder\Microsoft.FlightSimulator_8wekyb3d8bbwe!App


One of my other batch files looks like this.  MSFS launches fine.

@ECHO "Starting MSFS"
@start /b Shell:AppsFolder\Microsoft.FlightSimulator_8wekyb3d8bbwe!App -FastLaunch
@timeout /t 60 /nobreak
@ECHO "Starting SpadNext"
@start /b "" "C:\Program Files\Spad.Next\Spad.Next.exe" -m
@ECHO OFF

Please Log in or Create an account to join the conversation.

  • crosire
More
2 years 3 months ago #2 by crosire Replied by crosire on topic Is there a way to use a FastLaunch parameter in the batch file?
I don't know where that batch file comes from, it's not something ReShade provides, nor do I know what "ReshadeInjectUWP" is supposed to be.
But based on what it seems to do (as it seems to just use my injector tool), can just do something trivial like this:
echo Starting injector ...
@start /b %USERPROFILE%\ReshadeInjectUWP\inject.exe FlightSimulator.exe
echo Starting Flight Simulator ...
@start /b Shell:AppsFolder\Microsoft.FlightSimulator_8wekyb3d8bbwe!App -FastLaunch
...

Please Log in or Create an account to join the conversation.

  • eracer59
  • Topic Author
More
2 years 3 months ago - 2 years 3 months ago #3 by eracer59 Replied by eracer59 on topic Is there a way to use a FastLaunch parameter in the batch file?
@crosire
Very strange. That is the batch file that the ReShade UWP version installer created.  I did not modify it in any way, except when I tried to add the FastLaunch parameter.
The code you suggested is exactly what I tried, which did not work.  The CMD windows shows "Waiting for a Microsoft Flight Simulator Process" but MSFS will not launch.
If I remove the -FastLaunch parameter it works.
Last edit: 2 years 3 months ago by eracer59.

Please Log in or Create an account to join the conversation.

  • eracer59
  • Topic Author
More
2 years 3 months ago - 2 years 3 months ago #4 by eracer59 Replied by eracer59 on topic Is there a way to use a FastLaunch parameter in the batch file?
I see what the confusion was. The batch file is created by MilkyDeveloper's UWP installer, which was needed to run Reshade in MSFS.  I thought you were that guy.  Sorry...

I deleted that install and installed your new 5.8.0 software.  For those who have had trouble getting Reshade to run in MSFS (because you can't point the Reshade installer to FlightSimulator.exe - due to Microsoft's insistence on locking that file) I'll share what I learned today that makes it work perfectly:

When installing Reshade, manually point the installer to the following file:
In my system it's located at D:\WindowsApps\Microsoft.FlightSimulator_1.33.8.0_x64__8wekyb3d8bbwe\gamelaunchhelper.exe
It may be somewhere else in yours, but you can just search for that .exe file to locate the folder it's in.

 
Last edit: 2 years 3 months ago by eracer59.

Please Log in or Create an account to join the conversation.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.