#include<stdio.h>
#include<conio.h>
#include<process.h>
#include<dir.h>
#include<conio.h>
#include<process.h>
#include<dir.h>
void main() {
int check;
char *dirname;
clrscr();
printf("Enter a directory path and name to be created (C:/name):");
gets(dirname);
check = mkdir(dirname);
int check;
char *dirname;
clrscr();
printf("Enter a directory path and name to be created (C:/name):");
gets(dirname);
check = mkdir(dirname);
if (!check)
printf("Directory created\n");
printf("Directory created\n");
else
{
printf("Unable to create directory\n");
exit(1); }
getch();
system("dir/p");
getch();
}
{
printf("Unable to create directory\n");
exit(1); }
getch();
system("dir/p");
getch();
}
No comments:
Post a Comment