FREE TUTORIALS ON C programming

Saturday, January 25, 2014


#include <direct.h>
#include <stdio.h>

int main(void)
{
   printf("Changing to the root directory.\n");
   if (chdir("\\"))
      perror(NULL);
   else
      printf("Changed to the root directory.\n\n");
    system("dir");
    getchar();
   return 0;
   
   

}
11:44 PM   Posted by Unknown with No comments

0 comments:

Post a Comment

Bookmark Us

Delicious Digg Facebook Favorites More Stumbleupon Twitter

Search