Creating hard and soft links using PowerShell

前端 未结 11 1720
攒了一身酷
攒了一身酷 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:36

    Try junction.exe

    The Junction command line utility from SysInternals makes creating and deleting junctions easy.

    Further reading

    • MS Terminology: soft != symbolic
      Microsoft uses "soft link" as another name for "junction".
      However: a "symbolic link" is something else entirely.
      See MSDN: Hard Links and Junctions in Windows.
      (This is in direct contradiction to the general usage of those terms where "soft link" and "symbolic link" ("symlink") DO mean the same thing.)

提交回复
热议问题