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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -