在标准帐户(Vista)中文件创建失败 [英] File creation fails in standard account (Vista)

查看:61
本文介绍了在标准帐户(Vista)中文件创建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了C#应用程序,该应用程序在桌面上创建了一个图像文件.在XP和Vista(管理员帐户)上可以正常工作,但无法在Vista(标准帐户)的桌面上创建映像文件.

I have created C# application, which creates a image file on Desktop. It works fine on XP and Vista (admin account) but it fails to create image file on Desktop in Vista (standard account).

我是否必须在应用程序中包含清单文件才能正常工作? 如果我添加清单,它将在XP上正常运行吗?

Whether i have to include manifest file to the application to work properly? If i add manifest, will it work on XP without any problems?

对不起,如果是la脚的问题. 预先感谢.

Sorry if it is lame question. Thanks in advance.

推荐答案

请确保您使用的是System.Environment.SpecialFolder类,以告诉您用户桌面的实际位置.

Make sure you're using the System.Environment.SpecialFolder class to tell you where your user's Desktop really is.

这篇关于在标准帐户(Vista)中文件创建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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