c++ - Do system(); commands work in exactly the same way as batch commands? -


basically, batch commands (normally executed in batch file, or typed in cmd) work within system(); function? exact same processes, or system(); based on syntax of cmd/batch commands?

the answer question in title,

system(); commands work in same way batch commands?

is "no".

but in main question text clarify "batch commands" include commands typed in command interpreter, system. answer "yes", unorthodox & pretty meaningless meaning of "batch commands".

regarding "no" answer, question in title, batch commands (in sense of batch commands) blocking invocations of gui subsystems programs, while typed commands not. testing now, found system g++ , visual c++, blocking gui programs. not guaranteed. there syntactical differences. in particular concerns use of %.


Comments