Del Command (Piv txwv, Options, Switches, thiab ntau dua)

Cov txheej txheem:

Del Command (Piv txwv, Options, Switches, thiab ntau dua)
Del Command (Piv txwv, Options, Switches, thiab ntau dua)
Anonim

Cov lus txib del yog Command Prompt hais kom siv los tshem tawm cov ntaub ntawv. Muaj ntau yam kev xaiv hais kom koj tshem tawm cov ntaub ntawv uas muaj qee cov ntaub ntawv txuas ntxiv, tshem tawm txhua cov ntaub ntawv hauv ib lub nplaub tshev, tshem tawm tsuas yog cov ntaub ntawv nrog qee cov ntaub ntawv cwj pwm, thiab ntau dua.

Tsis zoo li kev rho tawm cov ntaub ntawv ib txwm, cov ntaub ntawv tshem tawm nrog cov lus txib del tsis xaus rau hauv Recycle Bin.

Image
Image

Cov lus txib no yog tib yam li cov lus txib tshem tawm.

Del Command Availability

Cov lus txib del muaj nyob rau hauv Command Prompt hauv Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, thiab Windows XP operating systems.

Nws kuj tseem siv tau rau hauv Command Prompt hauv Advanced Startup Options thiab System Recovery Options kho/rov qab menus.

In Recovery Console hauv Windows XP thiab Windows 2000, delete Rov qab Console tuaj yeem siv hloov pauv.

Del Command Syntax

del [ /p] [ /f] [ / s] [ /q] [ /a[ :] filename [ /?

Qhov muaj ntawm qee qhov del command keyboards thiab lwm yam kev hais kom ua syntax yuav txawv ntawm kev khiav hauj lwm rau kev khiav hauj lwm. Txhuam yuav ua li cas nyeem cov lus txib syntax yog tias koj tsis paub meej yuav txhais li cas cov syntax raws li nws tau qhia saum toj no lossis piav qhia hauv cov lus hauv qab no.

Del Command Options
piav qhia
Qhia kom paub meej ua ntej tshem tawm txhua cov ntaub ntawv.
/f Force deletes read-only files.
/s Deletes cov ntaub ntawv teev tseg los ntawm tag nrho cov subdirectories.
/q Quet mode; suppresses prompts rau rho tawm kev pom zoo.

Deletes cov ntaub ntawv raws li ib qho ntawm cov yam ntxwv hauv qab no:

r=Nyeem-tsuas cov ntaub ntawv

h=Hidden files

i =Tsis muaj cov ntsiab lus indexed cov ntaub ntawvo

=Offline files s

=System filesa

=Cov ntaub ntawv npaj rau archivingl

=Reparse cov ntsiab lus

/? Siv kev pab hloov nrog cov lus txib del los qhia cov ncauj lus kom ntxaws txog cov lus txib ob peb xaiv. Executing del /? yog tib yam li siv cov lus txib kom ua tiav help del.

Del Command Piv txwv

Ntawm no yog qee qhov piv txwv qhia tias koj tuaj yeem siv cov lus txib:

Delete File in Specific Folder


del c:\windows\twain_32.dll

Hauv qhov piv txwv saum toj no, cov lus txib del yog siv los tshem tawm twain_32.dll nyob hauv C:\Windows nplaub tshev.

Delete File From Current Folder


del io.sys

Ntawm no, cov lus txib tsis muaj cov ntaub ntawv qhia txog txoj hauv kev, yog li cov ntaub ntawv io.sys raug tshem tawm los ntawm cov npe twg koj tau ntaus cov lus txib los ntawm.

Piv txwv li, yog tias koj ntaus del io.sys los ntawm C:\> kom sai, cov ntaub ntawv io.sys yuav raug rho tawm ntawm C:\.

Delete tag nrho cov ntaub ntawv EXE


del C:\Users\Tim\Downloads\.exe

Qhov no tshem tawm tag nrho cov ntaub ntawv EXE los ntawm Tim tus neeg siv daim nplaub tshev Downloads. Cov ntaub ntawv txuas ntxiv tuaj yeem hloov pauv nrogtxhawm rau tshem tawm txhua cov ntaub ntawv ntawm lub nplaub tshev ntawd.

Ceeb toom tsis muaj qhov chaw tom qab Downloads\. Ntxiv qhov chaw yuav ua txhaum cov lus txib thiab qhia Windows kom tshem tawm cov ntaub ntawv Downloads tsis yog cov ntaub ntawv EXE nkaus xwb. Vim tias cov lus txib del tsis tshem tawm cov folders, nws yuav tshem tawm txhua cov ntaub ntawv los ntawm nws, suav nrog tsis tsuas yog cov ntaub ntawv EXE nkaus xwb tab sis kuj tseem muaj cov duab, cov ntaub ntawv, yeeb yaj kiab, thiab lwm yam.

Delete Txhua Cov Ntaub Ntawv Archived


del /a:a.

Siv cov lus txib del no kom tshem tawm txhua cov ntaub ntawv khaws tseg hauv cov npe ua haujlwm tam sim no. Zoo ib yam li io.sys cov lus txib saum toj no, qhov no yuav ua rau txhua qhov nplaub tshev Command Prompt tau teeb tsa rau.

Delete By Attribute and Extension


del /q /a:r C:\Users\Tim\Documents\.docx

Txhawm rau muab ob peb lub del hloov pauv, xav txog qhov lus txib no uas yuav tshem tawm txhua qhov kev nyeem nkaus xwb (/a:r) DOCX cov ntaub ntawv los ntawm tus neeg siv cov ntaub ntawv nplaub tshev, tab sis yuav ua li ntawd hauv hom ntsiag to (/q) yog li uas koj tsis tau nug kom paub meej.

Delete Files From Subfolders


del /s C:\Users\Tim\Documents\Adobe\.

Cov lus txib no yuav tshem tawm txhua cov ntaub ntawv (.) ntawm txhua lub nplaub tshev (/s) hauv Adobe folder hauv tus neeg siv cov ntaub ntawv teev npe. Cov folders yuav nyob twj ywm, tab sis txhua cov ntaub ntawv yuav raug tshem tawm.

Txawm li cas los xij, hauv qhov piv txwv no, koj yuav raug hais kom nkag mus rau Y rau txhua cov ntaub ntawv kom paub meej tias koj ua, qhov tseeb, xav rho tawm txhua tus. Txhawm rau zam qhov ntawd, yog tias koj paub tseeb tias koj xav rho tawm txhua cov ntaub ntawv, koj tuaj yeem ntxiv /q hloov ua ntej lossis tom qab /s hloov pauv kom khiav cov lus txib hauv hom ntsiag to.

Ib yam li nrog DOCX piv txwv saum toj no, daim npav qus (.) hauv cov lus txib no tuaj yeem hloov mus rau txhua yam kom tshem tawm cov ntaub ntawv nkaus xwb. Siv. MP4 rau MP4s,. MP3 rau MP3s, thiab lwm yam.

Del Related Commands

Lwv cov lus txib zoo ib yam rau cov lus txib del, yog li tuaj yeem siv nrog cov txiaj ntsig zoo ib yam. Hauv lwm lo lus, koj tuaj yeem hloov "del" nrog "luag" hauv ib qho ntawm cov piv txwv hais saum toj no yam tsis muaj kev cuam tshuam cov lus qhia.

Cov lus txib forfiles qee zaum siv nrog cov lus txib del kom tshem tawm cov ntaub ntawv uas muaj hnub nyoog ntau hnub. Piv txwv li, tej zaum koj yuav xav rho tawm cov ntaub ntawv uas muaj hnub nyoog tshaj ib hlis hauv ib lub nplaub tshev tshwj xeeb, ib yam dab tsi koj tuaj yeem ua nrog forfiles thiab del tab sis tsis yog tsuas yog cov lus txib del xwb.

Nyob hauv Windows XP thiab versions tshiab ntawm Windows, rmdir yog siv los lwv tag nrho cov ntawv tais ceev tseg, thaum deltree siv rau tib lub hom phiaj hauv kev khiav hauj lwm qub dua Windows XP.

Hauv MS-DOS, cov lus txib undelete yog siv los kho cov ntaub ntawv uas tau muab tshem tawm nrog cov lus txib rho tawm. Txhawm rau tshem tawm cov lus txib del hauv cov ntawv tshiab ntawm Windows, sim ua cov ntaub ntawv rov qab.

Pom zoo: