批处理删除隐藏文件

2025-05-12 14:21:10
推荐回答(5个)
回答1:

1 先attrib -h "C:\Documents and Settings\All Users\B241A000.dat" 解除隐藏属性再删。

2 直接用 del "C:\Documents and Settings\All Users\B241A000.dat" /ah 删

另外隐藏、只读、系统的属性分别是h r s,attrib的话 -r -h -s 可解除,del的话 /ar /ah /as

回答2:

del /ah 文件名

回答3:

@echo off
attrib C:\Documents and Settings\All Users\B241A000.dat -s -h -a -r
del C:\Documents and Settings\All Users\B241A000.dat

回答4:

加上参数 /H之类的...

回答5:

没明白。。。