일괄 처리에서 디스크 c:\
의 여러 폴더에있는 모든 파일 * .bak을 삭제하려고합니다.
아무도 도와 줄 수 있습니까?확장자가 .bak 인 파일을 삭제하는 일괄 파일
예 :
all c:
del *.bak /s /a
감사합니다.
일괄 처리에서 디스크 c:\
의 여러 폴더에있는 모든 파일 * .bak을 삭제하려고합니다.
아무도 도와 줄 수 있습니까?확장자가 .bak 인 파일을 삭제하는 일괄 파일
예 :
all c:
del *.bak /s /a
감사합니다.
그것은 하나의 명령이 될 수 있습니다.
del /s /q /f c:\*.bak
전역 삭제를주의 깊게 수행하십시오! 특히 두통과 시스템을 복원하는 시간을 낭비하는 방식으로 당신이 요구하는 것 이상을 얻을 수 있습니다. 그 존재와
는 말했다 : 자세한 내용은
C:
cd \
del /s /q /f *.bak
, Windows 7에서 당신이 제공 명령 프롬프트에서 입력 del /?
이 :
Deletes one or more files.
DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
ERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
names Specifies a list of one or more files or directories.
Wildcards may be used to delete multiple files. If a
directory is specified, all files within the directory
will be deleted.
/P Prompts for confirmation before deleting each file.
/F Force deleting of read-only files.
/S Delete specified files from all subdirectories.
/Q Quiet mode, do not ask if ok to delete on global wildcard
/A Selects files to delete based on attributes
attributes R Read-only files S System files
H Hidden files A Files ready for archiving
I Not content indexed Files L Reparse Points
- Prefix meaning not
If Command Extensions are enabled DEL and ERASE change as follows:
The display semantics of the /S switch are reversed in that it shows
you only the files that are deleted, not the ones it could not find.