33,311
社区成员
发帖
与我相关
我的任务
分享
#include <windows.h>
#include <shlwapi.h>
#include <stdio.h>
int main( void )
{
WIN32_FIND_DATAW fdw;
HANDLE handle;
HANDLE hStdout;
DWORD ret;
wchar_t filePath[ 256 ];
hStdout = GetStdHandle( STD_OUTPUT_HANDLE );
handle = FindFirstFileW( L"D:\\enc1\\word\\*", &fdw );
setlocale(LC_ALL,"kor");
if ( handle != INVALID_HANDLE_VALUE )
{
do
{
printf("[%S]",fdw.cFileName);
}
while ( FindNextFileW( handle, &fdw ) );
FindClose( handle );
}
return 0;
}