4 siyaabood oo loo abuuro faylal dummy random oo leh cabbir gaar ah gudaha Windows

Iyadoo inta badan isticmaalayaasha caadiga ah laga yaabo inay qabaan arrimo fahamka baahida loo qabo in la abuuro faylal khayaali ah oo aan kala sooc lahayn oo cabbir gaar ah leh, geeks, horumariyayaal software, iyo isticmaalayaasha awoodda ayaa og sababta faylasha noocaas ah ay u iman karaan mararka qaarkood. Waxaad isticmaali kartaa faylalka dummy si aad u ogaato haddii ay jiraan qaybo xun oo ku jira darawalkaaga adag, si aad u tijaabiso xawaaraha shabakada, ama si aad u hubiso in faylasha kombiyuutarkaaga ama qalabkaaga la tirtiray ka dib soo kabashada. Iyadoo aan loo eegin(Regardless) sababahaaga, halkan waxaa ah afar siyaabood oo loo abuuri karo faylalka noocaan ah nooc kasta oo casri ah oo Windows ah:

1. Samee faylka dummy oo leh amarka fsutil

Dhammaan noocyada Windows tan iyo Vista waxaa ku jira mid la fulin karo oo lagu magacaabo fsutil.exe . Gudaha Windows 10 , waxaad ka heli kartaa "C:\Windows\System32" folder.

Galka ka kooban fsutil la fulin karo

Fsutil.exe waa qalab awood leh oo lagu maareeyo qaybaha iyo mugga. Waxyaabo kale oo badan, waxaad sidoo kale u isticmaali kartaa si aad si dhakhso ah u abuurto faylasha dhumucyada ah ee cabbir kasta oo ka yimaada Command Prompt .

Waxaa jira siyaabo badan oo loo bilaabo Command Prompt(ways to launch the Command Prompt) , laakiin waxaan doorbideynaa inaan galno "cmd" goobta raadinta shaqada, ka dibna riix ama taabo Command Prompt . Haddii aad damacsan tahay inaad ku abuurto faylal aan caadi ahayn oo dummy ah oo ku jira galka nidaamka la ilaaliyo (sida C: drive), taabo "Run as administration"("Run as administrator") beddelkii.

Ka fur Command Prompt barkaaga shaqada

Marka talisku furmo, ku qor fsutil(fsutil) oo ku(Command Prompt) dhufo Enter si aad u aragto liiska amarrada uu taageerayo qalabkan. Waxaa jira xuduudo badan oo aad isticmaali karto. Tani waxay kaliya ku siinaysaa dhadhanka waxa fsutil.exe sameyn karo. Waxaad ka heli kartaa macluumaad dhamaystiran oo ku saabsan awoodeeda dukumentiyada rasmiga ah ee TechNet .

Liiska amarrada ay taageerto fsutil

Waxaa jira laba amar oo aad geli karto Command Prompt si aad u abuurto faylka dummy:

  • fsutil wuxuu abuuray cabbir cusub oo magac (size)cusub(filename)
  • fsutil wuxuu abuuray cabbirka magaca pathfilename cusub(pathfilename size)

Ku beddel magaca faylka(filename) magaca aad rabto faylka dummy. Waxaad dooran kartaa inaad ku darto kordhin ama ha samaynin, maadaama aanay tani saamaynaynin habka. Ku beddel cabbirka(size) cabbirka aad rabto in faylkaaga khariban uu yeesho. Baaxadda waxaa lagu qiyaasaa bytes. Waxaa laga yaabaa inay sahlanaato in la isticmaalo beddelaha khadka tooska ah(an online converter) si uu kaaga caawiyo qeexida cabbirka aad doorbidayso.

Farqiga u dhexeeya labada amar ayaa ah in kan labaad uu kuu ogolaanayaa inaad si sax ah u qeexdo meesha faylkaaga ku kaydsan yahay, adigoo ku beddelaya dariiqa(path) goobta aad dooratay ee qalabkaaga.

Hadda oo aan ka gudubnay qaybta aragtida, aan aragno sida tani u shaqeyso ficil ahaan. Waxaan markii hore abuurnay fayl la yiraahdo myfile.exe oo cabbirkiisu yahay 10MB ama 10485760 bytes. Si loo abuuro, waxaan galnay amarka soo socda: fsutil file createnew myfile.exe 10485760

Abuuritaanka fayl la isticmaalayo amarka ugu horeeya

Sida kor lagu arkay, haddii aad isticmaasho amarka ugu horreeya oo aadan cayimin waddo, faylka waxaa lagu abuuray faylka isticmaalahaaga. Xaaladeena , waxa lagu kaydiyay C: UsersDiana Ann Roe . Ka dib waxaan abuurnay fayl kale oo 2MB ah, markan annaga oo adeegsanayna waddo gaar ah oo aan kordhin. Waxaan galnay: fsutil file abuuro cusub D:myfile 2097152(fsutil file createnew D:myfile 2097152)

Abuuritaanka fayl la isticmaalayo amarka labaad

Hal dhinac oo xusid mudan ayaa ah in faylasha lagu sameeyay fsutil.exe ay madhan yihiin. Ma jiro wax ka kooban gudaha

2. Ku samee fayl dummy ah oo aan kala sooc lahayn oo leh abuuraha Faylka Dummy(Dummy File Creator)

Haddii aad rabto faylal khayaali leh oo leh waxyaabo random ah, ama haddii aadan ku qanacsanayn Talaabada Amarka(Command Prompt) , markaa waa inaad tixgelisaa isticmaalka barnaamijyada dhinac saddexaad. Qalab bilaash ah oo sahlan in la isticmaalo waa abuuraha Faylka Dummy(Dummy File Creator) .

Waxaad kala dooran kartaa rakibaha iyo kaydiyaha. Waxaan kugula talineynaa inaad hesho kaydka oo aad ka soo saarto(extract it) meel kombayutarkaaga ah. Kadibna, socodsii faylka Dummy.exe . Haddi aad rabto in aad ku abuurto faylal nidaamkaaga darawalka ( C: ), midig-guji ama tabo-oo-jidh oo dooro " Run as administration("Run as administrator) " ama barnaamijku waxa uu soo celinayaa khalad marka uu isku dayo in uu abuuro faylashaada.

Ku orod Dummy.exe si aad u bilowdo abuurista faylalka dummy

Iyadoo u baahan dib u habeyn, interface-ka barnaamijkani waa mid toos ah. Qaybta Habka(Mode) ayaa kuu ogolaanaysa inaad doorato inaad rabto inaad abuurto hal fayl ama ka badan. Isticmaal badhanka Browse si aad u tagto meesha aad rabto inaad ka abuurto faylka oo ku qor magaca (iyo kordhinta, haddii aad mid rabto). Marka xigta, sheeg Cabbirka Faylka(File Size) oo calaamadee sanduuqa "Content file Random (non-compressible)"("Random file content (non-compressible)") haddii aad rabto in faylkaagu uu yeesho xog random. Kadib, dhagsii ama taabo Abuur(Create) .

Habbee faylkaaga khayaaliga ah oo tabo Create

Bar horusocodka ayaa ku ilaalinaysa cusbooneysiinta inta faylkaaga la abuurayo.

Raac abuurista faylkaaga dummy

Isla markii uu barnaamijku dhammeeyo qoraalka, waxa aad helaysaa ogaysiis kugu wargelinaya in faylkaaga la sameeyay.

Soo-gudbintu waxay kuu ogolaanaysaa inaad ogaato in faylka la sameeyay

Qalabkani waa iska caddahay in la isticmaalo marka loo eego fsutil.exe , sidoo kale waxay la socotaa faa'iidooyin dhowr ah, sida abuurista faylal badan oo isku mid ah iyo ikhtiyaarka lagu daro faylalka random.

3. Abuur fayl khariban oo aan toos ahayn oo wata Qalabka Disk(Disk Tools)

Beddelka kale ee bilaashka ah ee bixiya xulashooyin badan oo waxka beddelka ah waa xirmada qalabka Disk(Disk tools toolkit) . Sida magacaba ka muuqata, kani waa qalab yar oo la xidhiidha diskooga oo bilaash ah. Mid ka mid ah qalabkan waa Fayl-dhaliye(File Generator) . Soo deji oo socodsii CubicDesign_tools.exe . Markaad isku daydo inaad gasho, Windows Defender SmartScreen ayaa soo baxaysa, isagoo kuu sheegaya inay ka hor istaagtay abka aan la aqoonsan inuu bilaabo. Guji(Click) ama taabo macluumaad dheeri ah(More info) oo dooro Run si kastaba(Run anyway) . Guji ama taabo Ku rakib(Install) oo sug inta abka uu furayo. Marka soo saarista la dhammeeyo, File Explorer wuxuu ku geynayaa galka cusub ee la sameeyay ee loo yaqaan xirmada qalabka Tahionic(Tahionic tools package). Dhammaan faylasha ku jira qolkan, ka fur Disk Tools.exe , oo ka socda nidaamka &(System & security) galka amniga.

Gelida Qalabka Disk.exe

Sidoo kale baahi weyn oo loo qabo dib u habeyn, Qalabka Disk(Disk Tools) wuxuu ka furmayaa tab -dhaliyaha Faylka(File generator) , kaas oo ah midka aan u baahanahay inaan abuurno faylal dummy ah.

Adeegso tab-dhaliyaha Faylka si aad u abuurto faylal khayaali ah

Afarta qaybood ee tabkan waxay kaa caawinayaan inaad habayso faylkaaga khayaaliga ah:

  • Tirada faylasha(Number of files) - Deji tirada faylasha la sameeyay.
  • Cabbirka faylka(File size) - Deji cabbirka faylka ama dooro mid ka mid ah cabbirrada la soo jeediyay ee dhinaca midig.
  • Magaca faylka(File name) - Deji magaca faylka iyo goobta. Dooro Qaabka(Pattern) si aad u geliso magac gaar ah (iyo, ikhtiyaari, kordhin)
  • Nuxurka faylka(File content) - Deji waxa ku jira faylka. Dooro "Ku buuxi faylalka nuxurkan"("Fill the files with this content") si aad u habayso qoraalka faylkaaga iyo si aad u furto ikhtiyaarka ah "Ka dhig faylka mid gaar ah("Make file unique) , " kaas oo ku anfacaya markaad abuurto faylal badan, oo aadan doonaynin faylal la soo saaray oo leh waxyaabo isku mid ah.

Markaad dhammayso dejinta waxyaabaha, dhagsii ama taabo Create . Qaylo-dhaantu waxay muujinaysaa in faylka dummy-ga la sameeyay, iyo, xagga hoose ee tabka, barnaamijku wuxuu sidoo kale kuu ogolaanayaa inaad ogaato wakhtiga ay qaadatay in la soo saaro faylka. Waa suurtogal in barnaamijku dhawaaqo oo uu ku dhawaaqo inuu abuuray faylka dummy, laakiin faylka ma aha meesha la cayimay. Tani waxay dhici kartaa haddii aad ku shaqaynayso Disk Tools la'aanteed ogolaanshaha maamulaha oo aad isku dayayso inaad ku abuurto faylasha nidaamkaaga wadista ( C: ). Si aad u abuurto faylal meel kasta oo ka mid ah kumbuyuutarkaaga ama qalabka Windows , hubi inaad furto barnaamijka maamule ahaan(as administrator) .

Waxa aan ka jecelnahay app-kan ayaa ah, in kasta oo ay u muuqato waxoogaa buuqsan, waxay bixisaa xulasho qaabeyn heer sare ah, oo aad leedahay fikrad marka ay timaado gudbinta macluumaadka. Doorashada faylal gaar ah ayaa sidoo kale taabasho fiican ah.

4. Ku samee fayl khariban oo aan toos ahayn oo wata PowerShell

Waxa kale oo aad samayn kartaa fayl khariban adigoo isticmaalaya PowerShell oo ka socda Windows . In kasta oo aan faahfaahin ka bixinnay dhammaan siyaabaha aad app-kan ugu furi karto casharkii hore(previous tutorial) , waxaan u aragnaa inay ugu fududahay inaad ku qorto "powershell"("powershell") goobta raadinta shaqada, ka dibna aad gujiso ama taabato Windows PowerShell . Si kastaba ha noqotee, haddii aad qorsheyneyso inaad ku abuurto faylal aan caadi ahayn oo dummy ah nidaamkaaga darawalka ( C: ), iska hubi inaad dooratid "Run as Administrator" xulashada midigta marka aad furto.

PowerShell ka fur barkaaga hawsha

App - ka PowerShell ayaa furmay , isagoo ku sugaya inaad qorto amarrada oo aad socodsiiso.

Qalabka PowerShell ayaa furmay

Si aad u abuurto faylka dummy, waxaad u baahan tahay inaad geliso amarka soo socda ee hal-line ah:

$out = walax cusub[] cabbir(size) ; (New- wal Random ) .NextBytes ($ out); [ IO.File ] :: QorAllBytes (' pathfilename ', $out)

Ku beddel cabbirka(size) cabbirka faylkaaga khariban yahay, ee bytes. Waxaad isticmaali kartaa beddelaha khadka(an online converter) haddii aad u baahan tahay in lagaa caawiyo qeexidda cabbirka aad doorbidayso. Ku baddal dariiqa(path) goobta aad rabto inaad ka abuurto faylka dummy. Ku beddel magaca faylka(filename) magaca aad rabto faylka dummy. Ku dar kordhinta faylka haddii aad rabto, maadaama aysan tani wax saameyn ah ku yeelan habka. Aan ku tusaalayno arrintan tusaale si aan u caddayno:

Waxaan go'aansanay inaan abuurno fayl la yiraahdo mypowerfile.txt oo cabbirkiisu yahay 1MB (ama 1048576 bytes) ee D: qaybinta. Si loo abuuro, waxaanu galnay amarka soo socda: $out = new-object byte[] 1048576; (new-object Random).NextBytes($out); [IO.File]::WriteAllBytes('D:mypowerfile.txt', $out)

Samee fayl khariban adigoo isticmaalaya PowerShell

In kasta oo PowerShell aanu bixin jawaab celin-waqtiga-dhabta ah (haddii aanad khalad qorin amarka), sida abka kale ee aanu dhaafnay, waxaad sheegi kartaa in la sameeyay abuurista faylka marka ay diyaar u tahay amar kale. Haddii aad tagto goobta la cayimay, waxaad arki kartaa in faylka dummy-ga la sameeyay.

Faylka dummy waxaa lagu sameeyay PowerShell

Si la mid ah isticmaalka fsutil ee amarka degdegga ah(Command Prompt) , waxaad ka tagi kartaa waddada(path) oo faylka waxaa lagu abuuray faylka isticmaalahaaga. Waxaan isticmaalnay isla amarkii kor ku xusan, anagoo ka tagnay wadadii(path) oo dhan: $out = new-object byte[] 1048576; (new-object Random).NextBytes($out); [IO.File]::WriteAllBytes('mypowerfile.txt', $out)

Samee fayl khariban adiga oo aan sheegin dariiqa

Dariiq la'aan, faylka cusub ee dummy-ga waxaa lagu kaydiyaa si caadi ah C: UsersYourUserNamemypowerfile.exe , sida hoos lagu arkay. Si ka duwan fsutil(fsutil) , PowerShell wuxuu kuu ogolaanayaa inaad abuurto faylal khayaali ah oo leh waxyaabo aan toos ahayn. Haddii aad is barbar dhigto laba fayl(compare two files) , oo la sameeyay iyadoo la adeegsanayo isla amar, waxaad arki kartaa inay leeyihiin waxyaabo kala duwan.

Faylasha aan lahayn waddo cayiman ayaa lagu abuuray faylka isticmaalahaaga

Dhammaan xulashooyinka kor ku xusan, PowerShell waa tan ugu dhib badan, labadaba sababtoo ah kakanaanta amarradeeda iyo maqnaanshaha xaqiijinta marka faylkaaga khariban la soo saaro. Si kastaba ha ahaatee, isticmaalayaasha awooda ayaa laga yaabaa inay doorbidaan xulashooyinka kale.

TALO:(TIP:) Markaad isticmaalayso amarada PowerShell ee kor ku xusan, waxaad ku dari kartaa halbeeg ka dhigaya console inuu bixiyo jawaab celin, adoo abuuraya faylal khayaali ah. Si kastaba ha noqotee, maskaxda ku hay in tani ay amarka ka dhigayso mid aan loo baahnayn muddo dheer, maadaama ay tahay inaad geliso hal-liner-kan soo socda:

$out = new-object byte[] 1048576; (new-object Random).NextBytes($out); [IO.File]::WriteAllBytes('mypowerfile.txt', $out); if ($out -ne $null) {Write-Host ("Dummy file successfully created")} else {"Failed to create dummy file"}

Qaabkee ugu fudud?

Waxaanu baadhnay godad internet-ka oo aanu soo dejinay hal faylal oo aad uga shakisan si aanu kuugu keeno casharkan. Kahor intaadan xidhin, fadlan nala soo socodsii hababkan midkee ayaad doorbidaysaa? Sidoo kale, haddii aad taqaano siyaabo kale oo aad ku abuurto faylasha dummy gudaha Windows , ha ka waaban inaad la wadaagto faallooyinka hoose waxaanan ballanqaadeynaa inaan hubinno.



About the author

Waxaan ahay injineer software ah oo khibrad u leh Xbox Explorer, Microsoft Excel, iyo Windows 8.1 Explorer. Waqtiga firaaqada, waxaan jeclahay inaan ciyaaro ciyaaraha fiidiyaha oo aan daawado TV-ga. Waxaan shahaadada ka qaatay Jaamacadda Utah, waxaanan hadda u shaqeynayaa sidii injineer software ah oo shirkad caalami ah.



Related posts