How do I create file hardlink in PowerShell on Windows 10?

前端 未结 1 609
忘掉有多难
忘掉有多难 2020-12-31 00:19

How do I create file hardlink in PowerShell on Windows 10?

PSCX has New-Hardlink, but is it still needed on Windows 10?

You could always shell

1条回答
  •  时光说笑
    2020-12-31 00:58

    New-Item -ItemType HardLink -Name CoverageCount.cs -Value ..\..\OPIAspnet5\Models\CoverageCount.cs

    The ItemType parameter now includes a type for hardlinks, which I feel is a hidden gem of PowerShell on Windows 10.

    0 讨论(0)
提交回复
热议问题