Thaum lawv nug Kuv yuav ua li cas sai sai cov ntaub ntawv nyob rau hauv ib daim ntawv nyeem, kuv pom tau hais tias kuv tsis paub teb. Txawm hais tias qhov hauj lwm, raws li nws muab tawm, yog heev ntau. Qhov no tej zaum yuav tsum tau hloov cov ntaub ntawv xa mus rau ib tus kws khomob tshwjxeeb (los daws kom tau qhov teebmeem), nws tus kheej nkag cov khoom thiab lwm yam.
Nws tau txiav txim siab kom tshem tawm qhov chaw thiab npaj cov lus qhia hauv nqe lus no, uas yuav qhia tau tias yuav ua li cas kom tau txais ib daim ntawv teev cov ntaub ntawv (thiab subfolders) hauv cov kab ntawv Windows, siv qhov kev hais kom ua, nrog rau kev siv lub zog li cas yog tias qhov hauj lwm tshwm sim ntau zaus.
Tau txais ib phau ntawv nrog cov ntawv ntawm daim nplaub tshev rau ntawm kab ntawv hais kom ua
Ua ntej, yuav ua li cas yuav ua tau ib daim ntawv muaj cov ntawv teev muaj cov npe ntawm cov ntaub ntawv nyob rau hauv lub nplaub tshev manually.
- Khiav ib tug hais kom sai raws li cov thawj coj.
- Sau cd x: nplaub tshev qhov twg x: folder yog tag nrho kev mus rau lub nplaub tshev, cov ntaub ntawv ntawm cov ntaub ntawv uas tau txais. Nias Sau.
- Sau cov lus txib dir /a / -p /o:gen>cov ntaub ntawv.txt (qhov twg files.txt yog ib phau ntawv cia uas cov npe ntawm cov ntaub ntawv yuav raug cawm dim). Nias Sau.
- Yog tias koj siv qhov lus txib nrog lub parameter / b (dir /a /b / -p /o:gen>cov ntaub ntawv.txt), daim ntawv teev cov ntsiab lus yuav tsis muaj cov ncauj lus qhia ntxiv txog qhov ntau thiab tsawg ntawm cov ntaub ntawv los yog lub hnub tsim - tsuas sau cov npe.
Ua li cas. Yog li ntawd, cov ntaub ntawv uas muaj cov ntaub ntawv tsim nyog yuav raug tsim. Hauv tsab ntawv teev lus hais saum toj no, daim ntawv no yog raug khaws cia rau hauv tib phau ntawv, cov ntaub ntawv ntawm qhov koj xav tau. Koj tseem tuaj yeem tshem tawm cov lus tso tawm rau hauv cov ntawv nyeem, uas yog cov ntaub ntawv sau cia rau hauv cov kab hais kom ua.
Tsis tas li ntawd, rau cov neeg siv ntawm lub Lavxias teb sab version ntawm Windows, koj yuav tsum nqa mus rau hauv tus nqi uas cov ntaub ntawv tseg rau hauv qhov rais 866 encoding, uas yog, koj tuaj yeem pom hieroglyphs es tsis txhob siv cov lus cim hauv Lavxias teb sab (tab sis koj tuaj yeem siv lwm txoj kab ntawv nyeem kom pom, piv txwv li, Cov Ntawv Sublime).
Tau txais ib daim ntawv teev cov ntaub ntawv siv Windows PowerShell
Koj tuaj yeem sau cov ntaub ntawv nyob rau hauv ib phau ntawv siv PowerShell qhov rais. Yog tias koj xav khaws cov npe rau ib daim ntawv, ces khiav PowerShell ua tus thawj coj, yog tias koj tsuas tuaj yeem tuaj rau hauv lub qhov rais, ib qhov yooj yim tso tawm.
Piv txwv ntawm cov lus txib:
- Tau-Childitem -Path C: Sis-teev - teev tag nrho cov ntaub ntawv thiab cov folders hauv nplaub tshooj nplaub tshev rau tsav C hauv qhov rais Powershell.
- Tau-Childitem -Path C: Folder | Tawm tawm cov ntaub ntawv C: Files.txt - tsim ib phau ntawv Files.txt nrog rau ib daim ntawv teev cov ntaub ntawv hauv nplaub tshev nplaub tshev.
- Ntxiv cov kev ntsuas -Recurse rau thawj qhov tau hais tseg tseem teev cov ntsiab lus ntawm tag nrho cov subfolders hauv daim ntawv.
- Cov -File thiab -Qhov chaw xaiv cia koj sau cov ntaub ntawv los yog folders, feem.
Qhov saum toj no tsis yog tag nrho cov cwj pwm ntawm Get-Childitem, tab sis raws li hauv cov hauj lwm uas tau piav qhia hauv phau ntawv no, kuv xav tias lawv yuav txaus.
Microsoft Kho nws cov hluav taws xob luam tawm cov ntawv ntawm ib phau ntawv
Nyob rau ntawm nplooj ntawv http://support.microsoft.com/ru-ru/kb/321379 muaj Microsoft Fix It Utility, uas ntxiv cov khoom "Print Directory Listing" rau lub ntsiab lus teb ntawm tus kws tshawb fawb, uas teev cov ntaub ntawv hauv daim nplaub tshev.
Dua li ntawm qhov tseeb tias qhov kev pab cuam tsim los tsuas rau Windows XP, Vista thiab Windows 7, nws ua haujlwm tiav nyob rau hauv Windows 10, nws txaus los khiav nws nyob rau hom kev sib haum xeeb.
Ntxiv thiab, nyob rau tib phab qhia qhov kev txiav txim ntawm manually ntxiv cov lus txib kom tso saib cov ntaub ntawv hauv Explorer, thaum qhov kev xaiv rau lub qhov rais 7 kuj yog qhov tsim rau Windows 8.1 thiab 10. Thiab yog tias koj tsis xav sau, koj tweak tau cov commands uas yog Microsoft los tshem cov parameter / p nyob rau hauv kab thib peb thiab tshem tag nrho plaub.