Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: Jeehemdee on May 22, 2006, 12:42:13 pm
-
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!
-
Apparently "Run" doesn't support command line output redirection.
-
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...
-
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-
-
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.
-
Thanks for this complete answer !! ;-)