MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM
Re: Mame Gives No Logs, PlzHlp!
06/10/18 05:01 AM


I think the "start" command might be the problem.

I can run MAME directly in a batch file all day and capture the output in a log file.

Also, I'm not sure but you might need to add: 2>&1
to the end of your command line to capture both standard out and standard error...


C:\Games\Emu\Arcade\Mame0.198b\mame64.exe -v -help > mameLog.txt 2>&1


EDIT: I found more about redirecting the output when using "start"...

http://www.robvanderwoude.com/battech_redirection.php

Quote:



Escaping Redirection (not to be interpreted as "Avoiding Redirection")

Redirection always uses the main or first command's streams:

START command > logfile

will redirect START's Standard Output to logfile, not command's!
The result will be an empty logfile.

A workaround that may look a bit intimidating is grouping the command line and escaping the redirection:

START CMD.EXE /C ^(command ^> logfile^)

What this does is turn the part between parentheses into a "literal" (uninterpreted) string that is passed to the command interpreter of the newly started process, which then in turn does interpret it.
So the interpretation of the parenthesis and redirection is delayed, or deferred.
Note: Be careful when using workarounds like these, they may be broken in future (or even past) Windows versions.

A safer way to redirect STARTed commands' output would be to create and run a "wrapper" batch file that handles the redirection.
The batch file would look like this:

command > logfile

and the command line would be:

START batchfile






GroovyMAME support forum on BYOAC







Entire thread
Subject Posted by Posted on
* Mame Gives No Logs, PlzHlp! ThumpieBunnyEve 06/10/18 01:58 AM
. * Re: Mame Gives No Logs, PlzHlp! krick  06/10/18 05:01 AM
. * Re: Mame Gives No Logs, PlzHlp! John IV  06/10/18 03:20 AM
. * Re: Mame Gives No Logs, PlzHlp! ThumpieBunnyEve  06/10/18 01:09 PM
. * Re: Mame Gives No Logs, PlzHlp! RobbbertModerator  06/10/18 01:45 PM
. * Re: Mame Gives No Logs, PlzHlp! ThumpieBunnyEve  06/12/18 04:21 AM
. * Re: Mame Gives No Logs, PlzHlp! katananja  06/12/18 06:06 AM
. * Re: Mame Gives No Logs, PlzHlp! ThumpieBunnyEve  06/12/18 07:30 AM
. * Re: Mame Gives No Logs, PlzHlp! krick  06/13/18 03:44 AM
. * Re: Mame Gives No Logs, PlzHlp! ThumpieBunnyEve  06/17/18 10:36 AM
. * Re: Mame Gives No Logs, PlzHlp! Vas Crabb  06/17/18 11:03 AM
. * Re: Mame Gives No Logs, PlzHlp! ThumpieBunnyEve  06/17/18 10:49 PM
. * Re: Mame Gives No Logs, PlzHlp! Vas Crabb  06/18/18 01:42 AM
. * Re: Mame Gives No Logs, PlzHlp! ThumpieBunnyEve  06/18/18 07:46 AM
. * Re: Mame Gives No Logs, PlzHlp! ThumpieBunnyEve  06/18/18 07:56 AM
. * Re: Mame Gives No Logs, PlzHlp! ThumpieBunnyEve  06/13/18 08:43 PM
. * Re: Mame Gives No Logs, PlzHlp! krick  06/12/18 05:42 AM
. * Re: Mame Gives No Logs, PlzHlp! ThumpieBunnyEve  06/12/18 07:09 AM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 129 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1809