Hiding brief flash of DOS window not working

Am using the following to try and hide the brief flash of the DOS window, but it is not working ?
Any ideas ?

 clickData.func.command.AddLine("@runmode:hide");
 clickData.func.command.AddLine(montage);
 clickData.func.command.Run();

Above code does work, there was another call to montage causing the brief flash.