How Can I Use A Comma Within A System() Shell Script In C++? -
i trying create app let users find processes taking memory. doing following code:
system("tasklist /fi "status eq not responding"");
my compiler isn't liking put commas in.
this cmd command (or shell script, whatever) trying execute: tasklist /fi "status eq not responding".
where should put commas?
you need quote command line within system call like:
system("/bin/echo \"a, b, c\"");
Comments
Post a Comment