Creating hard and soft links using PowerShell

前端 未结 11 1728
攒了一身酷
攒了一身酷 2020-12-04 05:04

Can PowerShell 1.0 create hard and soft links analogous to the Unix variety?

If this isn\'t built in, can someone point me to a site that has a ps1 script that mimi

11条回答
  •  没有蜡笔的小新
    2020-12-04 05:27

    Add "pscx" module

    No, it isn't built into PowerShell. And the mklink utility cannot be called on its own on Windows Vista/Windows 7 because it is built directly into cmd.exe as an "internal command".

    You can use the PowerShell Community Extensions (free). There are several cmdlets for reparse points of various types:

    • New-HardLink,
    • New-SymLink,
    • New-Junction,
    • Remove-ReparsePoint
    • and others.

提交回复
热议问题