如何获取“临时文件夹"在 Windows 7 中? [英] How to get the "temp folder" in Windows 7?
本文介绍了如何获取“临时文件夹"在 Windows 7 中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 Windows 7 中,如何以编程方式获取系统临时文件夹?
In Windows 7, how can I get programatically the system temporary folder?
推荐答案
GetTempPath 函数可能正是您要找的.p>
The GetTempPath function is probably what you're looking for.
TCHAR buf [MAX_PATH];
if (GetTempPath (MAX_PATH, buf) != 0)
MessageBox (0, buf, _T("Temp path"), 0);
这篇关于如何获取“临时文件夹"在 Windows 7 中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文