windows - How I can start console application from bat / cmd file, so the console output will be inside bat? -


i tried this:

start patcher.exe pause

then new console window of app appears.

and this:

cmd.exe patcher.exe pause

appears cmd without execution of prog.

and this:

cmd.exe patcher pause

then appears cmd, must type "exit" , pro starts, in new console again.

i need console not appear, write messages in started bat.

the reason didn't work

cmd.exe patcher.exe 

is isn't how pass command cmd.exe. try

cmd.exe /c patcher.exe 

or

cmd.exe /k patcher.exe 

however, that's not remove duplicate console window. what's going on patcher.exe marked windows subsystem, isn't associated console launches it. launches child processes console applications, , since there's no associated console, new 1 created.

you try using editbin patcher.exe /subsystem:console make patcher.exe console-mode program well. console propagate parent patcher (child) grandchild. however, since program wasn't written or tested run way, find unintended consequences.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -