简体   繁体   English

保存到 Program Files 文件夹的文件不存在

[英]File saved to Program files folder is not there

I linked my application with the following options and saved a file from the application to the location 'C:\Program Files\ICEHost\Projects' .我将我的应用程序与以下选项链接起来,并将应用程序中的文件保存到位置'C:\Program Files\ICEHost\Projects' The file saved without any issues.文件保存没有任何问题。 But when I open the folder the file is not there.但是当我打开文件夹时,文件不存在。在此处输入图像描述

I don't want to execute the application as run as administrator.我不想以管理员身份运行应用程序。 How can I solve the issue?我该如何解决这个问题?

Probably your files had been virtualized:可能您的文件已被虚拟化:

http://www.windowsecurity.com/articles/Protecting-System-Files-UAC-Virtualization-Part1.html http://www.windowsecurity.com/articles/Protecting-System-Files-UAC-Virtualization-Part1.html

Check if you have "Compatibility Files" option in Windows Explorer (in C:\Program Files\ and then with that option on navigate to your folder)检查 Windows 资源管理器中是否有“兼容性文件”选项(在 C:\Program Files\ 然后使用该选项导航到您的文件夹)

BTW, you souldn't save files to that location.顺便说一句,您不会将文件保存到该位置。 Use User AppData folder instead.请改用 User AppData 文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM