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: Hiding a batch file with a bvs script , need help  (Read 1085 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
Hiding a batch file with a bvs script , need help
« on: September 23, 2009, 11:56:13 am »
Hi guys, im stting up a cab wih a simple gameand would like to use xp instead of dos so i can use the hardware on the motherboard,anyway i set up things this way, i created a batch file that calls another batch file, converted the first file to an exe file, use instant sheller to hide windows and to call the exe file that calls the batch file, and it works like a charm, boot superfast, the only downside its that you can see the autoexec file wile its executing mame, for about 5 seconds, so all i want its to hide that window , i found a way to do that , with a vbs script,

Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "C:\mame\autoexec.bat" & Chr(34), 0
Set WshShell = Nothing

And when i tried to run the script i get this error

script: c:\mame\invisible.vbs
line:    1
char:   1
error:   invalid character
code:   800A0408
source: microsoft vbscript compilation error

i was wondering if someone can help me fix this, i do not want to use a front end for this, as the game itself boots superfast, and dont want a fe logo before the game, thats the point, to make it feel original, thanks alot for any help.

abispac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1625
  • Last login:July 24, 2025, 12:57:01 am
Re: Hiding a batch file with a bvs script , need help
« Reply #1 on: September 23, 2009, 02:36:08 pm »