【问题标题】:Can't access a path with PowerShell无法使用 PowerShell 访问路径
【发布时间】:2016-07-22 13:40:53
【问题描述】:

我正在关注this guide 以删除 Steam 云配置文件,我必须关闭一个文件夹:[Steam\userdata\95925904\381210\remote]。每当我尝试 clc 时,都会收到拒绝访问错误。

这是错误的图片 - https://gyazo.com/cbab29f1daa2506b474683af42696ec1

我尝试以管理员身份打开 PowerShell,但没有帮助。这是错误:

    Clear-Content : Access to the path "D:\ProgramFiles\other\Steam\userdata\95925904\381210\remote\ProfileSaves" is denied.
At line:1 char:4
+ clc <<<<  D:\ProgramFiles\other\Steam\userdata\95925904\381210\remote\*
+ CategoryInfo           :PremissionDenied: (D:\ProgramFiles...te\ProfileSaves:String) [Clear-Content], UnauthorizedAccessException 
+FullyQualifiedErrorId : ClearContentUnauthorizedAccessError,Microsoft.Powershell.Commands.ClearContentCommand

【问题讨论】:

  • 请不要将图片发布到错误消息中。请以纯文本形式复制错误,然后粘贴到您的问题中。
  • 这是一个访问/权限的事情。一方面,我很惊讶您的“程序文件”目录没有空间,但这不一定是坏事或不可能的。 您确定 Steam 已关闭,当您尝试运行此程序时?它可能对文件有一个打开的锁,以防止在运行时访问。

标签: powershell steam


【解决方案1】:

好的,您是否尝试过手动操作?导航到文件夹,打开文件(在记事本或类似的东西中)并清除内容?

只需尝试完成指南中的步骤,如果一种方法不起作用,请尝试另一种相同的方法。尝试了解该步骤的作用。

clc 只是清除指定文件的内容。 https://technet.microsoft.com/en-us/library/hh849853.aspx

【讨论】:

    【解决方案2】:

    确保所有 Steam 实例及其运行的所有服务都已停止,然后尝试清除

    clc -path "D:\ProgramFiles\other\Steam\userdata\95925904\381210\remote\*"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-22
      • 2017-02-19
      • 2017-06-30
      相关资源
      最近更新 更多