I want to call a dos command, such as "dir/B *.txt >>a.txt", how can I realize it in C or Fortran code?
system("dir/B *.txt >>a.txt");
Thank you very much, Is there a way in Fortran compile environment?
Whatever the Fortran equivalent of system() is. :) This is the C/C++ forum, not Fortran.
system()