static void loopfilesWinApi(Args _args)
{
str fileName;
int handle;
str format = "*.txt";
;
if(WinApi::folderExists("C:\\Temp\\"))
{
[handle,fileName] = WinApi::findFirstFile("C:\\Temp\\" + format);
while(fileName)
{
//currentfileName = fileName;
info(filename);
filename = WinApi::findNextFile(handle);
}
WinApi::closeHandle(handle);
}
}
{
str fileName;
int handle;
str format = "*.txt";
;
if(WinApi::folderExists("C:\\Temp\\"))
{
[handle,fileName] = WinApi::findFirstFile("C:\\Temp\\" + format);
while(fileName)
{
//currentfileName = fileName;
info(filename);
filename = WinApi::findNextFile(handle);
}
WinApi::closeHandle(handle);
}
}