Sunday 6 January 2008

Create dir command in c


C program or code to create DOS command DIR

Step 1: Write following code.






#include 



#include 



int main(int count,char *argv[]){



struct find_t q ;



    int a;





    if(count==1)



        argv[1]="*.*";





    a = _dos_findfirst(argv[1],1,&q);



  

if(a==0){



   
     while (!a){



   
         printf(" 
%s\n", q.name);



   
         a =

No comments:

Post a Comment