如何在面板中显示临时文件/文件夹 [英] How to show temp file/folder in a panel

查看:73
本文介绍了如何在面板中显示临时文件/文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨....
我想 在C#.net Windows应用程序的面板中显示所有临时文件/文件夹 .
我该怎么办?

谢谢你

Hi ....
i want to show all temporary files/ folder in a panel in C#.net windows application.
how can i do that?

Thanking You

推荐答案



请为此参考 MSDN文章 [
Hi,

Please refer MSDN article for that[^]

To show your temporary files/folders you need to get the location of your temporary folder and show your data in the Folder Explorer that you have created.

And to get temporary folder path you can use below code,
string tempPath = Path.GetTempPath();



希望这对您有帮助,
谢谢
-Amit Gajjar



Hope this helps you,
Thanks
-Amit Gajjar


这篇关于如何在面板中显示临时文件/文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆