Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: abispac on May 12, 2012, 02:40:58 am

Title: help hiding a bat file
Post by: abispac on May 12, 2012, 02:40:58 am
how do front ends hide the mame comand window?
Im testing some stuff up in hyperspin and it works like a charm now, but i get an ugly comand windows everytime i launch a bat file, so i wonder if is an easy way to hide that windows just as the front ends do, thanks for any help.
Title: Re: help hiding a bat file
Post by: Thenasty on May 12, 2012, 08:01:27 am
the first line in your BAT file

@echo off








also you can add >nul at the end of command
ex:

Mame pacman >nul



hope that's what your looking for.
Title: Re: help hiding a bat file
Post by: elkameleon on May 12, 2012, 07:21:08 pm
echo off just doesnt print anything in the window, the window still pops up. There may be an option to run minimized though...
Title: Re: help hiding a bat file
Post by: TopJimmyCooks on May 12, 2012, 09:37:05 pm
http://forum.arcadecontrols.com/index.php?topic=117963.0 (http://forum.arcadecontrols.com/index.php?topic=117963.0)

See LeChuck's reply #1.  This is the only thing that worked for me. 
Title: Re: help hiding a bat file
Post by: elkameleon on May 12, 2012, 11:02:02 pm
I think you may be able to create a shortcut of the batch file, and within the shortcut properties, you can select to run it minimized. I'll check it out.

EDIT: going this route does indeed work, the only trace is the icon in the taskbar.
Title: Re: help hiding a bat file
Post by: abispac on May 13, 2012, 12:34:28 am
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "C:\arcade\tronswitch\4way.bat" & Chr(34), 0
Set WshShell = Nothing

fixed mi issue thanks for the help.