找回密码
 注册
搜索
[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
查看: 20447|回复: 1

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

[复制链接]
发表于 2021-2-14 22:28:16 | 显示全部楼层 |阅读模式
attrib命令中文件属性有:
R   只读文件属性。
  A   存档文件属性。
  S   系统文件属性。
  H   隐藏文件属性。
  O   脱机属性。
  I   无内容索引文件属性。
   X   无清理文件属性。
  V   完整性属性。
  P   固定属性。
  U   非固定属性。
前四种懂,后面完全不懂欸,网上也搜不到,求解!
发表于 2021-2-15 19:19:39 | 显示全部楼层
本帖最后由 路过 于 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|批处理之家 ( 渝ICP备10000708号 )

GMT+8, 2026-3-20 10:03 , Processed in 0.015539 second(s), 7 queries , File On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表