Jump to content
LaunchBox Community Forums

Command window stays open after launching batch file through LB


N3ONⱣɄNƘ

Recommended Posts

Hello,

I am having some issues when I launch a game using batch files through LaunchBox, the command window stays open. So far it is happening with OpenBor and Triforce platforms. The Triforce cmd window is blank while the OpenBor cmd window says "R:\LaunchBox\Emulators\OpenBOR>echo off
        1 file(s) copied.  (Example batch files and screenshots are below).  Does anyone have a solution?

 

OpenBor

@echo off
del R:\LaunchBox\Emulators\OpenBOR\Paks\* /Q
copy %1 R:\LaunchBox\Emulators\OpenBOR\Paks\
OpenBOR.exe
exit
Sega Triforce

@echo off
rem start JoyToKey\JoyToKey.exe
start f1button.vbs
"..\..\..\emulators\Dolphin Triforce\F-Zero AX\DolphinWX.exe" --exec=".\F-Zero AX.iso" --batch
rem TASKKILL /F /IM JoyToKey.exe

 

dolphin_batch_cmd_window.PNG

openbor_batch_cmd_window.PNG

Edited by NiHiLiSTiK
Link to comment
Share on other sites

Add    start ""    in front of the apps you want to execute.

::OpenBor

@echo off
del R:\LaunchBox\Emulators\OpenBOR\Paks\* /Q
copy %1 R:\LaunchBox\Emulators\OpenBOR\Paks\
start "" OpenBOR.exe


::Sega Triforce

@echo off
rem start JoyToKey\JoyToKey.exe
start "" f1button.vbs
start "" "..\..\..\emulators\Dolphin Triforce\F-Zero AX\DolphinWX.exe" --exec=".\F-Zero AX.iso" --batch
rem TASKKILL /F /IM JoyToKey.exe

If you reinstate joy2key, be sure to do there as well.

Once you're happy with that and then decide you don't want to see the Command Window popup at all, see here. ;) 

 

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