FirstSearch Blue

Find Everything You Need On Your First Search

Article

C++ Execute Shell Command

January 26, 2010 Updated February 19, 2017 1 min read fsb
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");

Conversation

Comments

Historic WordPress comments were imported into D1. New submissions stay in review until approved.

Published comments

Loading comments…