Users get temporary storage file path job

static void WL_YZF_WinApiGetTmpPath(Args _args)
{
FileName filePath;
;
info (Winapi :: getTempPath ()); // get the user to store temporary files in the default folder results: C: \ Users \ zfyang \ AppData \ Local \ Temp \ 2 \
filePath = WinApi::getTempFilename("Test","Jpg"); //结果:Test\Jpg41ED.tmp
info(filePath);
}

Guess you like

Origin www.cnblogs.com/xtwkh1973/p/10992850.html