In both Java and C++ arguments are wrapped by \' like :
system("cmd arg1 arg2");// C++ Runtime.getRuntime().exec("cmd arg1 arg2");// Java