Dir Command

Mehlala ea litaelo tsa Dir, liphetoho, dikgetho, le tse ling

Taelo ea taelo ke taelo ea Command Prompt e sebelisetsoang ho bontša lenane la lifaele le li-subfolders tse fupereng.

Bakeng sa faele kapa fensela ka bobeli, litaelo tsa mohala li tla bontša ka letsatsi le nako nako eo ntlha e fetotsoeng ho qetela, haeba ntho e le fensetere (e ngotsoeng e le

) kapa faele, boholo ba faele haeba ho hlokahala, 'me qetellong lebitso la faele kapa fensetere ho akarelletsa le ho atolosoa ha file .

Ka ntle ho lethathamo la faele le la folda, taelo ea mobu e boetse e bonts'a lengolo la hona joale la koloi ea karohano , lebokose la lentsoe , nomoro ea mohala oa lenane , palo e feletseng ea lifaele tse thathamisitsoeng, boholo ba lifaele tseo ka li-bytes, palo ea lihlooho tse tlaase tse thathamisitsoeng, le kakaretso ea li-byte e setseng mahala mahala.

Dir Command Ho fumaneha

Taelo ea taelo e fumaneha ho tsoa ka Command Prompt ho ohle a tsamaiso ea Windows ho akarelletsa le Windows 10 , Windows 8 , Windows 7 , Windows Vista le Windows XP .

Maqheku a maholo a Windows a kenyeletsa taelo ea mobu hammoho le likhetho tse fokolang ho feta tseo ke li thathamisitseng ka tlase. Taelo ea taelo hape ke taelo ea DOS , e fumanehang liphetolelong tsohle tsa MS-DOS.

Taelo ea taelo e ka fumanoa liphetolelong tsa offline Command Prompt, tse kang tse fumanehang ho tloha Lintlheng tsa Ts'ebetso tsa Sesebelisoa sa Ts'ebetso le Ts'ebetso ea Ts'ireletso ea Tsamaiso . Taelo ea taelo e boetse e kenyelelitsoe ho Recovery Console ho Windows XP.

Tlhokomeliso: Ho fumaneha ha li-switches tsa litaelo tse itseng tsa taelo le li- syntax tse ling tsa taelo tsa litšila li ka fapana le tsamaiso ea tsamaiso ho sebetsa.

Dir Command Syntax

hlaba [ koloi : ] [ tsela ] [ filename ] [ / a [::] litšobotsi ]] [ / b ] [ / c ] [ / d ] [ / l ] [ / n ] [ / o [ :: sortorder ] ] / / ]] [ / p ] [ / q ] [ / r ] [ / s ] [ / t ] [ / : ] [ fieldfield ]] [ / w ] [ / x ] [ / 4 ]

Tlhahiso: Bona kamoo u ka balang tumello ea syntax haeba u sa tsebe hantle hore na u ka fetolela poleloana ea taelo ea mohala joang joalokaha ke e ngoletse ka holimo kapa joalokaha e bontšitsoe tafoleng e ka tlase.

khanna :, tsela, filename Ena ke mochine , tsela , le / kapa filename eo u batlang ho bona liphello tsa taelo ea litšila bakeng sa. Tse tharo kaofela li khethoa hobane molao oa taelo o ka phethoa o le mong. Li-wildcards lia lumelloa. Sheba karolo ea Dir Command Examples tlase haeba sena se sa hlaka.
/ a

Ha o bolaoa a le mong, sesebelisoa sena se bontša mefuta eohle ea lifaele le li-folders, ho kenyelletsa le tse nang le litšobotsi tsa lifilimi tseo ka tloaelo li ba thibelang ho hlaha ho Command Prompt kapa Windows. Sebelisa / e nang le litšoaneleho tse latelang kapa tse 'maloa (colon ke e ikgethileng, ha ho na libaka tse hlokahalang) ho bonts'a feela mefuta ea lifaele ka lebaka la taelo ea litšila:

/ b Sebelisa kgetho ena ho bonts'a liphello tsa litšila ka mokhoa o "bare", o tlosa tlhahisoleseding e tloaelehileng ea hlooho le maoto, hammoho le lintlha tsohle tsa ntho e 'ngoe le e' ngoe, ho siea feela lebitso la moelelo kapa lebitso la lifaele le katoloso.
/ c Sena se susumetsa tšebeliso ea sekhetho sa likete ha taelo ea taelo e sebelisoa ka tsela e bontšang boholo ba lifaele. Ena ke boitšoaro bo sa tloaelehang lik'homphieutha tse ngata e le hore mokhoa o sebetsang ke / -c ho thibela mofani oa likete ka liphetho.
/ d Sebelisa / d ho fokotsa lintho tse bontšitsoeng ho li-folders feela (tse ka hare ho li-brackets) le mabitso a faele ka litlhaloso tsa bona. Lintho li thathamisitsoe holimo ho ea holimo ebe joale li tšela meqolong. Mohala oa litaelo oa litaelo oa Standard dirse le boitsebiso ba maoto li ntse li lekana.
/ l Sebelisa kgetho ena ho bonts'a lifensetere tsohle le ho kenya mabitso ka tlaase.
/ n Sesebelisoa sena se hlahisa sephetho ka melako ka letsatsi -> nako -> mohala -> faele ea boholo-holo -> faele kapa mohala oa lebitso la mohala oa mohala. Kaha sena ke boitšoaro bo sa tloaelehang, tšebeliso e sebetsang ke / / e e hlahisang likhalumo fesheneng kapa fensetereng lebitso la -> lengolo -> taelo ea faele -> letsatsi -> taelo ea nako .
/ o

Sebelisa kgetho ena ho hlalosa taelo ea mofuta oa liphetho. Ha o bolaoa a le mong, / o o thathamisa litsamaiso pele, e lateloa ke lifaele, ka bobeli ka tatellano ea alfabeta. Sebelisa kgetho ena ka e 'ngoe kapa tse ling tsa litekanyetso tse latelang (colone ke e ikhethileng, ha ho libaka tse hlokahalang) ho hlophisa liphello tsa taelo ea litšila ka mokhoa o hlalositsoeng:

  • d = hlahisa ka letsatsi / nako (e moholo ka ho fetisisa)
  • e = hlahisa ka ho eketsa (alfabeta)
  • g = moelelo oa sehlopha pele, o lateloa ke lifaele
  • n = hlahisa ka lebitso (alfabeta)
  • s = theha ka boholo (e nyenyane pele)
  • - = Sebelisa sena e le sekhetho ka leha e le efe ea litekanyetso tse boletsoeng ka holimo ho fokotsa taelo (mohlala -d ho hlophisa ka pele ka ho fetisisa, -a bakeng sa kholo ka pele, joalo-joalo).
/ leq Khetho ena e bonts'a sephetho se le seng ka nako e 'ngoe, e sitisoe ke Mochini o mong le o mong oa senotlolo ho tsoela pele ... kapele. Ho sebelisa / p ho tšoana haholo le ho sebelisa taelo ea mohala ka taelo e eketsehileng .
/ q Sebelisa sesebelisoa sena ho bontša mong'a faele kapa foldareng ho liphetho. Tsela e bonolo ka ho fetisisa ea ho sheba kapa ho fetola mong'a fono ho tswa ho Windows ke ka botlaaseng bo tsoetseng pele Thabeng ea Ts'ireletso ha u sheba Properties tsa faele.
/ r Khetho ea / r e bonts'a melaetsa e meng ea data (ADS) e leng karolo ea faele. Motlakase oa boitsebiso ka boeona o thathamisitsoe molaong o mocha, tlasa faele, 'me o lula o lekanngoa le $ DATA , o etsa hore o be bonolo ho o bona.
/ s Kgetho ena e bonts'a lifaele le lifaele tsohle ka molaetsa o hlalositsoeng hammoho le lifaele le lifaele tsohle tse nang le li-subdirectories leha e le life tsa lenane leo le boletsoeng.
/ t

Sebelisa kgetho ena ka e 'ngoe ea litekanyetso tse ka tlase (colon ke khethollo, ha ho sebaka se hlokahalang) ho hlalosa nako ea nako e lokelang ho sebelisoa ha u khetha le / kapa ho hlahisa liphetho:

  • e = ho fihlela qetellong
  • c = e bōpiloe
  • w = qetellong e ngotsoe
/ w Sebedisa / w ho bonts'a liphetho "ka mokhoa o pharaletseng" o fokotsang lisebelisoa tse bontšitsoeng lipoleng feela (tse ka hare ho li-brackets) le mabitso a faele ka mekhabiso ea tsona. Lintho li thathamisitsoe ho tloha ka letsohong le letšehali ho ea ka ho le letona mme ka morao ho mela. Mohala oa litaelo oa litaelo oa Standard dirse le boitsebiso ba maoto li ntse li lekana.
/ x Lenaneo lena le bontša "lebitso le khuts'oane" bakeng sa lifaele tseo mabitso a nako e telele a sa lumellaneng le melao e seng ea 8dot3.
/ 4 Mochine / 4 o fetola tšebeliso ea lilemo tse 4 tsa dijiti. Bonyane liphetolelong tse ncha tsa Windows, pontšo ea selemo sa li-4 ke boitšoaro bo sa tloaelehang le / -4 ha e hlahise pontšo ea selemo sa li-2.
/? Sebelisa sesebelisoa sa thuso ka taelo ea mohala ho bontša lintlha tse mabapi le dikgetho tse ka holimo ka fensetere ea Command Prompt. Ho etsa mosebetsi o sa lokelang / /? ho tšoana le ho sebelisa taelo ea thuso ea ho phethahatsa thuso ea dir .

Tlhahiso: Ho na le boitsebiso bo bongata boo taelo ea taelo e atisang ho khutla, ho boloka kaofela ho eona ho faele ea selefouno hangata ke khopolo e bohlale. Sheba Tsela ea ho khutlisa Phatlalatso ea Phatlalatso ho File bakeng sa lintlha tse eketsehileng mabapi le hore na u ka etsa see joang.

Mehlala ea Dir Command

ts'oana

Mohlala ona, taelo ea taelo e sebelisoa e le mong, ntle le mochine o mong le o mong :, tsela, filename , kapa li-switches, tse hlahisang sephetho se kang sena:

C: \> dir Volume ho drive C ha e na letšoao. Palo ea Serial Number ke F4AC-9851 Tlaleho ea C: \ 09/02/2015 12:41 PM $ SysReset 05/30/2016 06:22 PM 93 HaxLogs.txt 05/07/2016 02:58 AM PerfLogs 05/22/2016 07:55 PM Lenane la Lenaneo 05/31/2016 11:30 AM Lenaneo la Lenaneo (x86) 07/30/2015 04:32 PM Temp 05/22 / 2016 07:55 PM Basebetsi 05/22/2016 08:00 PM Windows 05/22/2016 09:50 PM Windows.old 1 Fere (s) 93 bytes 8 Dir (s) 18,370.433.024 li-byte mahala

Joalokaha u ka bona, taelo ea taelo e ile ea etsoa ho tloha molaong oa C (e leng C: \>). Ntle le ho hlakisa hore na fensetere e hokae hantle le ho kenya likahare ho tsoa ho, taelo ea litšila e fosahetse ho bontša tlhahisoleseding ena ho tloha moo taelo e ileng ea etsoa.

ts'oaea c: \ users / ah

Mohlala o ka holimo, ke kōpa hore taelo ea litšila e bonts'a liphello ho tloha ho khanna : le tsela ea c: \ basebedisi , eseng sebakeng seo ke se tsamaisang taelo ho tswa ho. Ke boetse ke totobatsa, ho latela / sesebelisoa le tšobotsi ea h , hore nka rata feela ho bona lintho tse patiloeng, tse hlahisang ntho e kang ena:

C: \> dir c: \ users / ah Volume ho drive C ha e na letšoao. Palo ea Serial Number ke F4AC-9851 Tlaleho ea c: \ users 05/07/2016 04:04 AM Basebelisi bohle [C: \ ProgramData] 05/22/2016 08:01 PM Default 05/07 / 2016 04:04 AM Sekhetho sa Basebelisi [C: \ Users \ Default] 05/07/2016 02:50 AM 174 desktop.ini 1 Fono (s) 174 bytes 3 Dir (s) 18,371,039 232 bytes mahala

Lethathamo le lenyenyane la litaelo le faele e le 'ngoe eo ue bonang karolong e ka holimo ha e felle ka botlalo ea c: \ sesebelisoa sa basebedisi - feela lifaele tse patiloeng le li-folders. Ho bona lifaele le lifaele tsohle , u tla phethahatsa c: \ users / a (ho tlosa h ) ho e-na le hoo.

hlaba c: \ *. csv / s / b> c: \ users \ tim \ desktop \ csvfiles.txt

Ho sena se rarahaneng haholo, empa se sebetsang haholo, mohlala bakeng sa taelo ea taelo, ke kōpa hore hard drive ea ka eohle e phenyekolloe bakeng sa lifaele tsa CSV ebe joale liphetho tse fokolang tse sa hlahisoang li hlahisoa tokomaneng ea mongolo. A re ke re shebeng sengoathoana sena ka thoko:

  • c: \ *. csv e bolella taelo ea mola hore e shebe lifahleho tsohle ( * ) tse qetellang ka katoloso ea CSV ( .csv ) motso oa c: koloi.
  • / s e laela hore u kene ho tebileng ho feta motso oa c: mme ho e-na le hoo, batla lifaele tse kang tsena foleng e 'ngoe le e' ngoe, tse tebileng joaloka li-folders.
  • / b e tlosa ntho leha e le efe ntle le tsela le lebitso la faele, ka ho hlahisa "lenane" le hlakileng la lifaele tsena.
  • > ke moeletsi oa ho khutlela morao , e bolelang "romela ho" kae-kae.
  • c: \ users \ tim \ desktop \ csvfiles.txt ke sebaka sa ho khutlisetsa > moeletsi, ho bolelang hore liphello li tla ngoloa ho file ea csvfiles.txt ho e-na ka Command Prompt, e tla bōptjoa ho c: \ users \ tim sebaka sa libaka -desktop (ke hore Desktop eo ke e bonang ha ke kena ho eona).

Ha o khutlisetsa sehlahisoa sa taelo lefapheng , joaloka re entse mona mohlala ona oa taelo ea diriso, Command Prompt ha e bontše letho. Leha ho le joalo, hantle seo u neng u ka se bona ke hore se fumaneha ka hare ho file eo. Mona ke seo csvfiles.txt ea ka e shebahalang ka mor'a hore taelo ea mohala e phethiloe:

c: \ ProgramData \ Intuit \ Quicken \ Inet \ merchant_alias.csv c: \ ProgramData \ Intuit \ Quicken \ Inet \ merchant_common.csv c: \ Users \ All Users \ Intuit \ Quicken \ Inet \ merchant_alias.csv c: \ Users \ Basebelisi bohle \ Intuit \ Quicken \ Inet \ merchant_common.csv c: \ Users \ Tim \ AppData \ Roaming \ boemo.2.csv c: \ Basebedisi \ Tim \ AppData \ Roaming \ line.csv c: \ Basebedisi \ Tim \ AppData \ Roaming \ media.csv

Le hoja ka sebele u ka be u ile ua theolela faele ea hau ea feshene, 'me esita le "sebopeho se sa bonahaleng" se fetola, liphello li ne li tla ba thata haholo ho sebetsa le fensetereng ea Command Prompt, ho etsa hore ho be thata ho fihla ho seo u neng u se le morao - sebaka se seng le se seng File ea CSV khomphuteng ea hau.

Melao e amanang le Dir

Taelo ea taelo e atisa ho sebelisoa ka taelo ea del. Ka mor'a hore u sebelise taelo ea litšila ho fumana lebitso le sebaka sa lifaele kapa melaetsa efe kapa efe, taelo ea del e ka sebelisoa ho hlakola lifaele ka ho toba ho Command Prompt.

E tšoanang ke taelo ea rmdir / s , le taelo ea khale ea deltree , e sebelisetsoang ho hlakola lifaele le lifaele. Taelo ea rmdir (ntle le khetho ea / s) e molemo bakeng sa ho tlosa li-folders tse se nang letho tseo u li fumanang ka taelo ea mohala.

Joalokaha ke boletse ka holimo, taelo ea taelo e boetse e atisa ho sebelisoa le mookameli oa moeletsi .