void main(int count,char *argv)
struct find_t q ;
a = _dos_findfirst(argv,1,&q);
printf(" %s\n", q.name);
a = _dos_findnext(&q);
printf("File not found");
Save the above file as list.c, compile and execute the go to command mode (current working directory) and write: list *.c
To run the list command in all directories and drive you will have to give the path of current working directory in command mode.
Now press enter key. Now your list command will work in all directory and drive.