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: Outputing an XML file from "Mame Windows command line" version  (Read 1567 times)

0 Members and 1 Guest are viewing this topic.

Jeehemdee

  • Guest
  • Trade Count: (0)
I try to output an XML list info file from Mame ;-)
If I try directly in "Start > Run" and type this command:

C:\mame0106b\mame.exe -listxml >list.xml

I can see the file list running at full speed in the Windows...but no file saved.

But, if I create a batch file with the same text inside...it works...I mean it's saved PLUS it's a lot quicker and I don't see the list running in a window !!!

Would you please explain me why? ;-)
Thnaks very much!

Buddabing

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1845
  • Last login:February 12, 2015, 02:51:45 pm
  • I'm a llama!
Re: Outputing an XML file from "Mame Windows command line" version
« Reply #1 on: May 22, 2006, 01:43:43 pm »
Apparently "Run" doesn't support command line output redirection.

I have changed my nickname to "Cakemeister". Please do not PM the Buddabing account because I do not check it anymore.

Please read the wiki!

Taborious

  • Wiki Contributor
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 264
  • Last login:December 29, 2011, 04:55:45 pm
  • Win or go Home!
    • The Way Back Machine
Re: Outputing an XML file from "Mame Windows command line" version
« Reply #2 on: May 22, 2006, 02:03:44 pm »
Actually I think it does but your output file list.xml is going to be stored in the default directory that RUN runs in not the dir you run the app front because you didnt cd to the dir first. So the default dir I think is c:\ so search your drives for your output file or if you know where it defaults check there...
« Last Edit: May 22, 2006, 02:06:17 pm by Taborious »
The Way Back Machine - http://www.taborious.com

miles2912

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 706
  • Last login:October 31, 2019, 05:30:24 pm
  • My first Home Game. Fairchild System F.
Re: Outputing an XML file from "Mame Windows command line" version
« Reply #3 on: May 22, 2006, 03:21:39 pm »
Drop to a command prompt and do it.  You can't redirect from a run command.  The batch file simulates dropping to a command prompt.  Why?   E-mail bill.gates@microsoft.com and ask him...  :)

D-
  Scratch built upright MAME Cab

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19428
  • Last login:Yesterday at 11:52:51 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Outputing an XML file from "Mame Windows command line" version
« Reply #4 on: May 22, 2006, 06:52:48 pm »
Drop to a command prompt and do it.  You can't redirect from a run command.  The batch file simulates dropping to a command prompt.  Why?   E-mail bill.gates@microsoft.com and ask him...  :)

D-

Answer.... 

Run is an shortcut for doing things in windows explorer.  Explorer.exe supports command line options as most windows apps support them, but does not support text redirection and piping functions. 

Cmd in xp is a dos simulator, so of course it has to support these things. 

Batch files work, even from the run command because batch files are associated with the command line interpreter, and thus run launches explorer.exe, which "opens" the batch file with "cmd.exe", which supports all of those piping/text features. 


Long story short, in the command prompt you are acessing the command line interpreter and in the run box you are calling explorer.exe with whatever you type in the run box as command line arguments.


Jeehemdee

  • Guest
  • Trade Count: (0)
Re: Outputing an XML file from "Mame Windows command line" version
« Reply #5 on: May 24, 2006, 03:09:41 am »
Thanks for this complete answer !! ;-)