[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[文件操作] 新手求助批处理attrib命令中文件属性

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

本帖最后由 路过 于 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

TOP

返回列表