When I try to run a macro with '/control/execute mymacro.mac', it will only output the commented lines and do nothing. None of the commands in the macro file is executed. It might be related to the method: void G4UImanager::ExecuteMacroFile(G4String fileName) but I am not sure. I have G4.2.0_ref01 compiled with most of the UI and Vis. drivers. But I have tested it both with code that uses all or none of them.
Could you provide us with the macro-file you use to generate this behavior? The command "/control/execute <macro-file>" is rather heavily used when running in interactive-mode, for us it works just fine and could not reproduce the problem.