Board logo

标题: [文件操作] 新手求助批处理attrib命令中文件属性 [打印本页]

作者: Cauchy    时间: 2021-2-14 22:28     标题: 新手求助批处理attrib命令中文件属性

attrib命令中文件属性有:
R   只读文件属性。
  A   存档文件属性。
  S   系统文件属性。
  H   隐藏文件属性。
  O   脱机属性。
  I   无内容索引文件属性。
   X   无清理文件属性。
  V   完整性属性。
  P   固定属性。
  U   非固定属性。
前四种懂,后面完全不懂欸,网上也搜不到,求解!
作者: 路过    时间: 2021-2-15 19:19

本帖最后由 路过 于 2021-2-15 19:26 编辑
  1. @echo off
  2. chcp 437
  3. attrib /?
  4. pause
  5. exit
  6. ____________________________________
  7.   R   Read-only file attribute.
  8.   A   Archive file attribute.
  9.   S   System file attribute.
  10.   H   Hidden file attribute.
  11.   O   Offline attribute.
  12.   I   Not content indexed file attribute.
  13.   X   No scrub file attribute.
  14.   V   Integrity attribute.
  15.   P   Pinned attribute.
  16.   U   Unpinned attribute.
复制代码
O是脱机文件,I表示该文件不能被索引。这两个可以在网上找,百度CreatFile或GetFileAttributes的用法。
XVPU请参考https://superuser.com/questions/ ... rity-v-pinn/1287315




欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2