WinExec("cmd /c dir c:\\new\\*.txt >c:\\new\\txtlist",SW_HIDE); 转载于:https://www.cnblogs.com/zzili/archive/2012/12/06/6663309.html