zoukankan      html  css  js  c++  java
  • 操作文件或者文件夹做硬连接

    1、文件夹:

    1 The first usage is for displaying reparse point information, the second usage is for creating a junction point, and the last for deleting a junction point:
    2 usage: junction [-s] [-q] <file or directory>
    3        -q     Don't print error messages (quiet)
    4        -s     Recurse subdirectories
    5 
    6 usage: junction <junction directory> <junction target>
    7        example: junction d:\link c:\windows
    8 
    9 usage: junction -d <junction directory>

    以下Win7自带

    1 MKLINK [[/D] | [/H] | [/J]] Link Target
    2 
    3         /D      创建目录符号链接。默认为文件
    4                 符号链接。
    5         /H      创建硬链接,而不是符号链接。
    6         /J      创建目录联接。
    7         Link    指定新的符号链接名称。
    8         Target  指定新链接引用的路径
    9                 (相对或绝对)。

    2、文件

    1 C:\Users\pyonline>fsutil hardlink
    2 ---- 支持的 HARDLINK 命令 ----
    3 
    4 create          创建硬链接
    5 list            枚举文件上的硬链接
  • 相关阅读:
    【bzoj3676】[Apio2014]回文串 —— 回文自动机的学习
    树链剖分求LCA
    读入输出优化
    【bzoj3124】[Sdoi2013]直径
    【codevs2183】匹配字符串
    【codevs2011】【LNOI2013】最小距离之和
    【codevs1306】广播操的游戏
    【hdu3966】Aragorn's Story
    【hdu3518】Boring counting
    C++-HDU3400-Line belt[三分]
  • 原文地址:https://www.cnblogs.com/pyonline/p/2651878.html
Copyright © 2011-2022 走看看