X

C++ Execute Shell Command

Here is how you execute a shell command from within a c++ program on Linux/Unix

Example Code: (this code creates a new directory called newFolder22 in the /home/sam/ directory);

system (“mkdir /home/sam/newFolder22”);

fsb:
Disqus Comments Loading...