Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: help hiding a bat file  (Read 1928 times)

0 Members and 1 Guest are viewing this topic.

abispac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1625
  • Last login:July 24, 2025, 12:57:01 am
help hiding a bat file
« 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.

Thenasty

  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4420
  • Last login:July 24, 2025, 06:20:12 pm
    • Thenasty's Arcademania Horizontal/Vertical monitor setup.
Re: help hiding a bat file
« Reply #1 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.
Thenasty's Arcademania Horizontal/Vertical setup.
http://forum.arcadecontrols.com/index.php?topic=26696.0

Free VGA Breakout Cable
http://forum.arcadecontrols.com/index.php?topic=38228.0

Ultimate All in One Coin Mech write up (Make your own)
http://forum.arcadecontrols.com/index.php?topic=19200.0

elkameleon

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 528
  • Last login:August 20, 2014, 08:31:00 pm
Re: help hiding a bat file
« Reply #2 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...

TopJimmyCooks

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2097
  • Last login:March 26, 2024, 01:18:39 pm
Re: help hiding a bat file
« Reply #3 on: May 12, 2012, 09:37:05 pm »
http://forum.arcadecontrols.com/index.php?topic=117963.0

See LeChuck's reply #1.  This is the only thing that worked for me. 

elkameleon

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 528
  • Last login:August 20, 2014, 08:31:00 pm
Re: help hiding a bat file
« Reply #4 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.
« Last Edit: May 13, 2012, 11:37:54 pm by elkameleon »

abispac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1625
  • Last login:July 24, 2025, 12:57:01 am
Re: help hiding a bat file
« Reply #5 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.