#include
"iostream.h"
#include
"dos.h"
main()
{
//AIM :
to make directory using dos call in all the memory models
union REGS i,o;
struct SREGS s;
char far(dname[12]);
cout<<"\nEnter directory name
to be created";
cin>>dname;
i.h.ah=0x39; //service no.
s.ds=FP_SEG(dname); //segment part of the
dir name
i.x.dx=FP_OFF(dname); //offset part of the
dir name
intdosx(&i,&o,&s);
if(o.x.cflag==0)
cout<<" \ndirectory
"<<dname<<" created\n";
else
cout<<" \ndirectory
"<<dname<<" not created\n";
return 0;
}