Thaum kuv raug nug txog yuav ua li cas sau cov ntawv ceev hauv cov ntawv nyeem, kuv pom tias kuv tsis paub cov lus teb. Txawm hais tias txoj haujlwm, raws li nws muab tawm, yog qhov muaj ntau. Qhov no tej zaum yuav tsum tau hloov cov ntaub ntawv teev npe mus rau tus kws tshaj lij (kom daws teeb meem), mus rau tus kheej teev lub npe ntawm cov ntawv ntiag tug, thiab lwm lub hom phiaj.
Nws tau txiav txim siab los tshem tawm qhov tsis sib xws thiab npaj cov lus qhia ntawm cov ncauj lus no, uas yuav qhia tau tias yuav ua li cas kom tau txais cov npe ntawm cov ntaub ntawv (thiab subfolders) hauv kab ntawv Windows uas siv cov kab hais kom ua, nrog rau yuav ua li cas los kho cov txheej txheem no yog tias txoj haujlwm tshwm sim tas li.
Tau txais cov ntawv sau cia nrog cov txheej txheem ntawm cov ntawv tais ceev tseg rau ntawm cov kab hais kom ua
Ua ntej, yuav ua li cas thiaj ua cov ntawv teev cov ntawv uas muaj cov npe ntawm cov ntawv hauv daim nplaub tshev yam ntawv ncaj qha.
- Khiav tus kab hais kom ua raws li cov neeg tswj hwm.
- Sau cd x: nplaub tshev qhov x: sis yog tag nrho txoj kev mus rau daim nplaub tshev, daim ntawv teev cov ntaub ntawv los ntawm qhov koj xav tau. Nias Sau.
- Sau hais kom ua dir /a / -p /o:gen>cov ntaub ntawv.txt (qhov twg files.txt yog cov ntawv ntim hauv uas cov ntaub ntawv sau yuav raug cawm). Nias Sau.
- Yog tias koj siv cov lus txib nrog xaiv / / b (dir /a /b / -p /o:gen>cov ntaub ntawv.txt), tom qab ntawd daim ntawv muab tawm yuav tsis muaj cov ntaub ntawv ntxiv txog cov ntaub ntawv ntau thiab cov hnub tsim tsim - tsuas yog cov npe npe.
Ua li cas. Yog li ntawd, cov ntaub ntawv tsim muaj cov ntaub ntawv tsim nyog yuav raug tsim. Hauv qhov hais kom ua saum toj no, daim ntawv no tau txais kev khaws cia hauv cov ntawv qub, daim ntawv teev cov ntaub ntawv los ntawm qhov koj xav tau. Koj tseem tuaj yeem tshem tawm cov zis rau hauv kab ntawv, nyob rau hauv rooj plaub no daim ntawv yuav pom tsuas yog ntawm kab hais kom ua.
Tsis tas li ntawd, rau cov neeg siv ntawm Lavxias-Lavxias-hom lus ntawm Windows, nws yuav tsum tau yug los rau hauv lub siab tias cov ntaub ntawv tau khaws cia hauv qhov encoding ntawm Windows 866, uas yog, hauv cov phau ntawv ib txwm koj yuav pom hieroglyphs hloov cov cim Lavxias (tab sis koj tuaj yeem siv lwm phau ntawv nyeem los saib, piv txwv li Sublime Text).
Tau txais cov npe sau cov ntaub ntawv siv Windows PowerShell
Koj tseem tuaj yeem tau txais cov npe npe ntawm cov ntawv tais ceev tseg uas siv Windows PowerShell cov lus txib. Yog tias koj xav khaws cov ntawv teev cia rau hauv cov ntawv, pib PowerShell ua tus tswj hwm, yog tias koj tsuas yog saib ntawm lub qhov rai, qhov kev pib ua haujlwm yooj yim txaus.
Piv txwv ntawm cov lus txib:
- Get-Childitem -Path C: Folder - qhia cov npe ntawm txhua cov ntaub ntawv thiab cov chaw nyob hauv Folder nplaub tshev ntawm C tsav hauv Powershell lub qhov rais.
- Get-Childitem -Path C: Folder | Out-File C: Files.txt - tsim cov ntawv sau Files.txt nrog cov npe ntawm cov ntaub ntawv hauv Folder nplaub tshev.
- Ntxiv -Xaj parameter mus rau thawj lo lus txib piav qhia kuj pom cov ntsiab lus ntawm txhua subfolders hauv cov npe.
- Cov -File thiab -Directory xaiv qhia cov npe ntawm cov ntaub ntawv nkaus xwb lossis cov folders nkaus xwb, feem.
Tsis yog txhua tus Get-Childitem tsis tau teev saum toj no, tab sis hauv cov haujlwm ntawm kev ua haujlwm tau piav qhia hauv phau ntawv qhia no, kuv xav tias yuav muaj txaus rau lawv.
Microsoft Txhim kho nws qhov nqi hluav taws xob kom luam cov ntawv ntiag tug
Ntawm nplooj ntawv //support.microsoft.com/ru-ru/kb/321379 muaj qhov chaw tsim hluav taws xob uas yog Microsoft Kho Nws ntxiv cov khoom "Sau Cov Ntawv Teev Npe" rau cov khoom siv tshawb nrhiav cov ntsiab lus teb, sau cov ntaub ntawv hauv daim nplaub tshev rau kev luam ntawv.
Txawm hais tias qhov tseeb hais tias qhov kev zov me nyuam tsuas yog tsim los rau Windows XP, Vista thiab Windows 7, nws kuj tseem ua haujlwm tau zoo hauv Windows 10, nws txaus los khiav nws hauv hom kev ua kom haum.
Tsis tas li ntawd, tib nplooj ntawv qhia cov txheej txheem rau manually ntxiv cov lus txib kom tawm cov npe ntawm cov ntaub ntawv mus rau tus neeg tshawb nrhiav, thaum xaiv rau Windows 7 haum rau Windows 8.1 thiab 10. Thiab yog tias koj tsis tas yuav luam tawm, koj tuaj yeem kho me ntsis kho cov lus txib uas muab los ntawm Microsoft los ntawm kev xaiv / p hauv txoj kab peb thiab tshem tag nrho plaub.