了解文件扩展名是否隐藏的文件类型(.doc或.pdf) [英] Knowing the file types(whether .doc or .pdf) if file extensions are hide

查看:92
本文介绍了了解文件扩展名是否隐藏的文件类型(.doc或.pdf)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在处理一些文件(在Windows应用程序中即c#)

我对此表示怀疑.

如果扩展名是hide,我如何查找文件类型是.pdf还是.doc还是.txt.

(如果我们在系统工具中设置->文件夹选项"->视图"->隐藏已知文件类型的扩展名,则进行检查)



问候,

Hi,

I am working on processing some files(in windows application i..e c#)

i have doubt as below.

How can i find the file type whether the file is .pdf or .doc or .txt if the extensions are hide.

(if we set in the system tools-->Folder Options-->View-->Hide extensions from known file types is checked)



Regards,

推荐答案

如果您使用C#处理文件,则扩展名不会隐藏-仅在对话框和Windows资源管理器中不显示给用户.就您的代码而言,它在那里并且可读.
If you are working on the files in C#, then the extension is not hidden - it is only not displayed to the user in dialog boxes and windows explorer. As far as your code is concerned, it is there and readable.


这篇关于了解文件扩展名是否隐藏的文件类型(.doc或.pdf)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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