#include int system(const char *command); system 함수는 DOS 명령어, 배피 파일(batch file) 또는 다른 프로그램들을 실행시키기 위해 DOS의 command.com을 작동시킵니다. 오류가 발생하면 -1을 반환하고, 전역 변수 errno를 ENOENT, ENOMEM, E2BIG, ENOEXEC 중의 하나로 설정합니다. 참고: exec.. 함수 #include int main() { system("dir"); return 0; }