2014-04-04 2 views

답변

22

그것은 하나의 명령이 될 수 있습니다.

del /s /q /f c:\*.bak 
12

전역 삭제를주의 깊게 수행하십시오! 특히 두통과 시스템을 복원하는 시간을 낭비하는 방식으로 당신이 요구하는 것 이상을 얻을 수 있습니다. 그 존재와

는 말했다 : 자세한 내용은

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. 
관련 문제