2

When I run this from notepad .bat file it open my application. But when I add ?streamermode=1 at the end it just open blank folder.

explorer.exe fivem://connect/IP --> works

explorer.exe fivem://connect/IP?streamerMode=1   --> does not work
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Azer
  • 33
  • 3

1 Answers1

2

Command fivem://connect/IP is Uniform Resource Identifier
This command start application associated with that URI

explorer.exe "fivem://connect/IP?streamerMode=1"
explorer.exe "https://stackoverflow.com/"

Powershell:

Start-Process "fivem://connect/IP?streamerMode=1"

CMD:

start "fivem://connect/IP?streamerMode=1"

C#

Process.Start("fivem://connect/IP?streamerMode=1")

You can also run this command through the browser as site

fivem://connect/IP?streamerMode=1
Genusatplay
  • 761
  • 1
  • 4
  • 15