***错误:无法写入目标文件。访问被拒绝。 (HRESULT异常:0x80070005(E_ACCESSDENIED)) [英] *** Error: Cannot write to the destination file. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

查看:490
本文介绍了***错误:无法写入目标文件。访问被拒绝。 (HRESULT异常:0x80070005(E_ACCESSDENIED))的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,

  我已经运行了一段时间的SyncToy,直到最近我才升级到Windows 7,没有任何问题。 我有一个外置USB驱动器,我将笔记本电脑同步到。 我所有的双方定义都被配置为贡献。 
另外,在外部驱动器上,我找到了所有的"synctoy _ * .dat"。文件并将其删除。 删除后,我在WIndows 7机器上配置了SyncToy。 当我尝试运行文件夹对时,我收到
" ***错误:无法写入目标文件。访问被拒绝。 (HRESULT异常:0x80070005(E_ACCESSDENIED))" 。 我以管理员身份登录的用户,为什么我不能将文件从笔记本电脑复制到外部
驱动器? 作为额外的测试,我尝试手动执行此操作。 它是手动工作的,但我收到一个对话框,说明
"您需要提供管理员权限才能复制到此文件夹。" 然后我提供继续,跳过和取消。 我按继续,一切都很顺利。 这可能是SyncToy生成拒绝访问权限的问题吗?

  我已经看到几个响应声明创建synctoy的快捷方式和cahning"运行为"给具有管理员权限的用户。 但是,如果我所拥有的用户已经具有管理员权限,那将会购买什么。 
有实际修复吗? 我做错了吗? 我刚刚开始使用Windows 7,我的问题才刚刚开始。

Hello All,
   I have been running SyncToy for some time now and have had no issues until recently since I have upgraded to Windows 7.  I have an external USB drive that I sync my laptop to.  All my pair definations are configured as contribute.  In addition, on the external drive, I located all "synctoy_*.dat" files and removed them.  After deleting them, I configured SyncToy on the WIndows 7 machine.  When I attempt to run a Folder pair, I receive "*** Error: Cannot write to the destination file. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) ".  The user I log in as is an administrator, therfore, why can I not copy files from the laptop to the external drive?  As an additional test, I tried doing this manually.  It works manually, but I receive a dialog box stating "You'll need to provide administrator permission to copy to this folder."  I am then provide with continue, skip and cancel.  I press continue and all is well.  Is this maybe the issue why SyncToy is producing the Access denied?
   I have seen several response stating to create a shortcut to synctoy and cahning the "run as" to a user with administrator rights.  However, If the user I am loged in as already has administrator rights what is this going to buy.  Is there an actual fix?  Am I doing something incorrect?  angain, my pproblems only started since I just started using Windows 7.

提前感谢所有回复

LOG OUTPUT

LOG OUTPUT

SYNC:11/25/2010 20:13:44:551:SyncToy运行我的文档(2010年11月25日8:13:44)完成了(c:\ usersrs \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\下午。

SyncToy的行动是"Contribute"。

SyncToy选项包括:

 有效运行所有

 包含所有文件

 不排除任何文件

 不检查文件内容

 包括只读文件

 包含隐藏文件

 包括系统文件

 备份旧文件(发送到回收站)

 包括所有子文件夹

SyncToy运行时间为00:00:00:421。

在00:00:00:4中复制171,412字节的1个文件21.

每秒字节数406,960.3,每秒文件数2.4。

避免在397个不需要采取行动的文件中复制9,913,248,305字节。

保存约06:45:59:252不复制所有文件。

警告:发生1次失败。

您可以通过选择"运行"来重试。再次或选择"预览"要查看剩余要执行的操作。

SYNC: 11/25/2010 20:13:44:551: SyncToy run of My Documents (c:\users\gary\documents\, E:\Laptop\C_Drive\Documents and Settings\Administrator\My Documents\) completed at 11/25/2010 8:13:44 PM.
SyncToy action was 'Contribute'.
SyncToy options were:
 Active for run all
 All files included
 No files excluded
 Do not check file contents
 Include read-only files
 Include hidden files
 Include system files
 Backup older files (send to Recycle Bin)
 All subfolders included
SyncToy run took 00:00:00:421.
Copied 171,412 bytes in 1 files in 00:00:00:421.
Bytes per second 406,960.3, files per second 2.4.
Avoided copying 9,913,248,305 bytes in 397 files that did not require action.
Saved approximately 06:45:59:252 by not copying all files.
Warning: 1 failures occured.
You can retry by selecting "Run" again or select "Preview" to see
the operations that remain to be performed.

SYNC:11/25/2010 20:13:44:551:***错误:不能写入目标文件。访问被拒绝。 (来自HRESULT的异常:0x80070005(E_ACCESSDENIED))将c:\users\gary \documents\Visual Studio 2005 \Settings \ CurrentSettings.vssettings复制到E:\ Laptop\C_Drive \Documents
和Settings\Administrator\My Documents\Visual Studio 2005\Settings\CurrentSettings.vssettings

SYNC: 11/25/2010 20:13:44:551: *** Error: Cannot write to the destination file. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Copying c:\users\gary\documents\Visual Studio 2005\Settings\CurrentSettings.vssettings to E:\Laptop\C_Drive\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Settings\CurrentSettings.vssettings

 

推荐答案

嗨Gary,

请检查管理员批准模式是否已启用,此模式是否已启用区分标准用户任务和管理员任务。您还可以将应用程序配置为使用提升的
运行
http://technet.microsoft.com/en-us/library/cc709691(WS.10).aspx#BKMK_S2

Could you please check if admin approval mode is enabled, this mode is enabled to differentiate between standard user task and administrator task. You can also configure the application to run with elevated http://technet.microsoft.com/en-us/library/cc709691(WS.10).aspx#BKMK_S2.

 

谢谢,

Ramesh V

Thanks,
Ramesh V

 


这篇关于***错误:无法写入目标文件。访问被拒绝。 (HRESULT异常:0x80070005(E_ACCESSDENIED))的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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