0x5*_*539 1 windows ntfs user-profiles junction windows-8.1
我正在尝试将我的用户配置文件迁移到一个单独的分区,我已经到了将兼容性系统 Junction 添加到新配置文件的地步。但是我不想在我的个人资料中看到它们,所以我想隐藏系统。
我的问题是该attrib命令仅更改连接点目标的属性。我可以将hidden属性应用到 Windows 资源管理器中的连接点,但不能应用到该system hidden属性。
不过,创建系统隐藏的 NTFS 联结应该是可能的,因为我的原始用户配置文件中的联结是系统隐藏的。有什么想法吗?
我在 Windows 8.1 64 位上。
抱歉,没有 Windows 8.1,所以这可能会有所不同,但在我的 Windows 10 VM 上,我看到attrib有一个开关/L可以解决您的问题。
/L Work on the attributes of the Symbolic Link versus
the target of the Symbolic Link
Run Code Online (Sandbox Code Playgroud)
所以为了测试,我做了类似的事情:
> mklink /j sample_shortcut C:\my_target_dir
Junction created for sample_shortcut <<===>> C:\my_target_dir
> attrib +S +H sample_shortcut /L
Run Code Online (Sandbox Code Playgroud)
我不再看到我创建的连接点。
| 归档时间: |
|
| 查看次数: |
1608 次 |
| 最近记录: |