Mmene mungapezere mndandanda wa mawindo pawindo la Windows

Pamene anandifunsa momwe ndingalembe mndandanda wa mafayilo mu fayilo ya mauthenga, ndinazindikira kuti sindinadziwe yankho. Ngakhale kuti ntchitoyi, monga momwe yakhalira, ndi yofala kwambiri. Izi zingafunike kutumiza mndandanda wa maofesi kwa katswiri (kuthetsa vuto), kudzilemba nokha zomwe zili mu mafoda ndi zolinga zina.

Zinasankhidwa kuthetsa danga ndikukonzekera malangizo pa mutuwu, zomwe zidzasonyeze momwe mungapezere mndandanda wa mafayilo (ndi mawonekedwe) muwindo la Windows pogwiritsa ntchito mzere wa malamulo, komanso momwe mungagwiritsire ntchito ndondomekoyi ngati ntchitoyo ikupezeka nthawi zambiri.

Kupeza fayilo ya malemba ndi zomwe zili mu foda pa mzere wa lamulo

Choyamba, momwe mungapangire chikalata cholembera mndandanda wa mafayilo m'thumba lomwe mukufuna.

  1. Kuthamangitsani lamulo lokhala ngati woyang'anira.
  2. Lowani cd x: foda pomwe x: folder ndi njira yonse yopita ku foda, mndandanda wa mafaira omwe mungapeze. Dinani ku Enter.
  3. Lowani lamulo dir /a /p /o:gen>mafayilo.txt (kumene mafayilo.txt ndi fayilo yolemba yomwe mndandanda wa mafayela udzapulumutsidwa). Dinani ku Enter.
  4. Ngati mugwiritsa ntchito lamulo ndi parameter / b (dir /a /b / -p /o:gen>mafayilo.txt), ndiye mndandanda sudzakhala ndi zina zowonjezera zokhudzana ndi mafayilo kapena tsiku la kulenga - mndandanda wa mayina okha.

Zachitika. Zotsatira zake, fayilo yolemba yomwe ili ndi zofunikira zofunika idzalengedwa. Mu lamulo ili pamwambapa, pepala ili likusungidwa mu foda yomweyo, mndandanda wa mafayela omwe mukufuna kuwapeza. Mukhozanso kuchotsa zotsatirazi mu fayilo ya mauthenga, pomwepo mndandandawo udzawonetsedwa kokha pa mzere wa lamulo.

Kuwonjezera pamenepo, kwa ogwiritsa ntchito chinenero cha Chirasha cha Windows, muyenera kukumbukira kuti fayiloyi imasungidwa pa Windows 866 encoding, ndiko kuti, mukhoza kuona majeroglyphe mmalo mwa anthu achirasha mu bukhu lachizolowezi (koma mungagwiritse ntchito mndandanda wina wosindikiza kuti muwone, mwachitsanzo, Sublime Text).

Pezani mndandanda wa mafayilo pogwiritsa ntchito Windows PowerShell

Mukhozanso kulembetsa mafayilo mu foda pogwiritsa ntchito mawindo a Windows PowerShell. Ngati mukufuna kusunga mndandanda ku fayilo, ndiye muthamange PowerShell monga wotsogolera, ngati mutangoyang'ana pawindo, kulumikiza kosavuta kumakwanira.

Zitsanzo za malamulo:

  • Pezani-Childitem-Njira C: Folder - alembetsa mafayilo ndi mafoda onse mu Folda foda pa galimoto C muwindo la Powershell.
  • Pezani -Chiyambi-Njira C: Folder | Tulutsani Foni C: Files.txt - pangani fayilo ya files Files.txt ndi mndandanda wa mafayilo mu Folda foda.
  • Kuwonjezera pa -Recurse parameter ku lamulo loyamba lofotokozedwanso limatulutsanso zomwe zili m'mabukutu onse.
  • Zolembera -File ndi -Zowonjezera zimakulolani kuti muwerenge mafayilo kapena mafoda, motero.

Zomwe zili pamwambazi sizinthu zonse zomwe zimapezekanso, koma mu chimango cha ntchito yomwe ikufotokozedwa mu bukhuli, ndikuganiza kuti zidzakhala zokwanira.

Microsoft Yambitsani ntchito yosindikiza zomwe zili mu foda

Pa tsamba //support.microsoft.com/ru-ru/kb/321379 pali ntchito yowonjezera ya Microsoft, yomwe imapanga chinthu "Print Directory Listing" ku menyu yachidule ya wofufuza, amene akulemba ma fayilo mu foda kuti ayimire.

Ngakhale kuti pulojekitiyo inakonzedweratu pa Windows XP, Vista ndi Windows 7, idagwira ntchito bwino pa Windows 10, inali yokwanira kuti iigwiritse ntchito mogwirizana.

Kuonjezerapo, patsamba lomwelo likuwonetseratu dongosolo la kuwonjezera lamulo kuti liwonetsetse mndandanda wa maofesi ku Explorer, pomwe chisankho cha Windows 7 chiyeneranso pa Windows 8.1 ndi 10. Ndipo ngati simusowa kusindikiza, mukhoza kusintha malemba omwe aperekedwa ndi Microsoft mwa kuchotsa piritsi / p mu gawo lachitatu ndikuchotseratu gawo lachinayi.