opendir()
closedir()
mkdir()
rmdir()
chdir()
用shell
#include
#include
#include
typedef char* LPCTSTR;
char str[300],ddt[300];
void fileexe(LPCTSTR namepath)
{
strcat(str,"dir /a ");
strcat(str,namepath);
strcat(str,"\\*.exe");
system(str);
printf("\n");
system("pause");
}
int main()
{
printf("Please input the path like (c:\\windows):\n");
scanf("%s",ddt);
fileexe(ddt);
return 0;
}