Jump to content
LaunchBox Community Forums

Batch file doesnt load through bigbox


Recommended Posts

so ive written some batch files to disable and enable the internet connection when i start up/exit assassins creed (damn you ubisoft) and it works fine through launchbox but doesnt load the batch file when running from bigbox.
anyone know why?

Link to comment
Share on other sites

55 minutes ago, Kahlenda1990 said:

so ive written some batch files to disable and enable the internet connection when i start up/exit assassins creed (damn you ubisoft) and it works fine through launchbox but doesnt load the batch file when running from bigbox.
anyone know why?

Since the batch file(s) needs to be ran as Admin to disable/enable "Ethernet", the easiest way is to create a shortcut to that batch file(s) and set the shortcut(s) to Run as Admin.   (You could do some other tomfoolery in the batch file to run some PowerShell thing, but that's kind of ugly.)

If [for some reason] you have LaunchBox or BigBox running as Admin, DON'T DO THAT.  It creates more problems than does good.

Once you have the shortcut(s) all set up, point to that/those in your Additional Apps.  Bonus tip: When you set the properties of the shortcut to run as admin, also set Run to Minimized to hide the Command Prompt Window.

 

This one will disable or enable the connection based on the current 'Connected' status.  Tested (Windows 10) from both LaunchBox and BigBox.

netsh interface show interface "Ethernet" |find "Connected" >nul && (
  echo connected - disconnecting...
  netsh interface set interface "Ethernet" disabled
) || (
  echo disconnected - connecting
  netsh interface set interface "Ethernet" enabled
)

Since this will toggle both ways, you can add just one Additional App and check both Run Before... and Run After....  

image.png.bd3abec0ba3b834d1c662c37fa1adb1e.png

Caveat: if for some reason you connection is already disabled before launching the game, this WILL enable it.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...