mon*_*sto 55 powershell windows-10
如果上面有文档,我会接受。任何网络搜索“符号链接”“符号链接”“windows [10]”“powershell”都会返回除基本命令之外的所有内容。
即使是 powershell docs 站点也没有返回任何内容。这不可能吗?
mon*_*sto 54
path to target链接的名称 2)path to location您想要链接的位置 3)the name您想要用来引用链接。PS C:\> new-item -itemtype symboliclink -path <path to location> -name <the name> -value <path to target>示例:如果你在 c:\drivers\AMD 并且你想在 f:\driver\olddrivers 中链接,那么你会去
PS C:\> new-item -itemtype symboliclink -path . -name OldDrivers -value f:\driver\olddrivers
并以 c:\driver\AMD\OldDrivers 的符号链接路径结束
Ian*_*emp 51
使用New-Itemcmdlet,并指定相应ItemType的SymbolicLink,HardLink或Junction。请注意,这些仅适用于 PowerShell 5.1 或更高版本。
+-----------------------+-----------------------------------------------------------+
| mklink syntax | PowerShell equivalent |
+-----------------------+-----------------------------------------------------------+
| mklink Link Target | New-Item -ItemType SymbolicLink -Name Link -Target Target |
| mklink /D Link Target | New-Item -ItemType SymbolicLink -Name Link -Target Target |
| mklink /H Link Target | New-Item -ItemType HardLink -Name Link -Target Target |
| mklink /J Link Target | New-Item -ItemType Junction -Name Link -Target Target |
+-----------------------+-----------------------------------------------------------+
Run Code Online (Sandbox Code Playgroud)
mklink参考:https
New-Item : //docs.microsoft.com/en-us/windows-server/administration/windows-commands/mklink参考:https : //docs.microsoft.com/powershell/module/microsoft.powershell.management/new -物品
| 归档时间: |
|
| 查看次数: |
49810 次 |
| 最近记录: |