Answers for "execute a command in shell by c"

C
0

c execute shell command

#include <stdlib.h>

# int system(const char *command);

system("pwd");
Posted by: Guest on June-21-2021
2

run a command in cmd with c

//C library statement
#include <stdlib.h>

//Driver program
int main(void)
{
	//The C command to run a command in cmd
	system("Your command here");
}
Posted by: Guest on December-15-2020

Code answers related to "execute a command in shell by c"

Code answers related to "C"

Browse Popular Code Answers by Language