Sida loo sameeyo faylal madhan isla markiiba amarka (cmd)

Sida loo abuuro faylal madhan isla markiiba amarka (cmd):(How to create empty files from the command prompt (cmd):)  Hagaag, mararka qaarkood waxaad u baahan tahay inaad ku abuurto faylal madhan Windows -ka codsiyada si ay uga shaqeeyaan deegaan la qaadi karo ama si aad uga faa'iidaysato faylalka null ee hab kale. Sababtu waxay doontaba ha noqotee, ogaanshaha sida loo abuuro faylal madhan isla markiiba amarka ayaa kaliya faa'iido kuu leh waxayna kaa caawin doontaa inaad si fiican u fahanto nidaamka.

Hadda nidaamyada ku habboon PSIX waxay leeyihiin amar taabashada(touch command) kaas oo abuura faylal madhan laakiin Windows , ma jiro amar caynkaas ah taas oo ah sababta ay muhiim u tahay in la barto sida loo abuuro. Waa inaad ka fekertaa sababta aadan uga abuurin fayl madhan notepad oo aad u badbaadiso, si fiican maahan fayl madhan sababtaas awgeed hawshan waxaa lagu dhammeeyaa iyadoo la adeegsanayo amarka degdega ah (cmd).

Sida loo sameeyo faylal madhan isla markiiba amarka (cmd)

1.Riix Windows Key + X kadibna dooro Command Prompt (Admin).

2. Ku qor amarka soo socda oo ku dhufo Gelida(Enter) : cd “C:\Your Directory”
Xusuusin:(Note:) Ku beddel tusahaaga tusaha dhabta ah ee aad u baahan tahay inaad ku shaqeyso.

3.Si aad u abuurto fayl faaruq ah kaliya ku qor amarkan oo ku dhufo Gelida: koobi nul “emptyfile.txt” (copy nul “emptyfile.txt”)
Xusuusin: (Note:) Beddel(Replace) emptyfile.txt oo wata magaca faylka aad u baahan tahay.

4.Haddii amarka kore uu ku guuldareysto inuu abuuro fayl madhan ka dibna isku day kan: copy /b NUL EmptyFile.txt

5.Hadda dhibka ka haysta amarka sare ayaa ah in uu had iyo jeer muujin doono in faylka la koobiyeeyay si taas looga fogaado waxaad sidoo kale isku dayi kartaa amarka soo socda: ku type NUL > 1.txt

6.Haddii aad runtii rabto fayl gabi ahaanba madhan, iyada oo aan wax soo saar ah lahayn stdout markaa waxaad u wareejin kartaa stdout nul:
copy nul file.txt > nul

7.Beddelka kale waa in la furo aaa> empty_file oo ku abuuri doona faaruq ah directory-ka hadda jira ka dibna wuxuu isku dayi doonaa inuu socodsiiyo amarka aaa kaas oo aan ahayn amar sax ah oo sidaas waxaad ku abuuri doontaa fayl madhan.

C:\Users\Aditya>cd Desktop

C:\Users\Aditya\Desktop>aaa >empty_file
'aaa' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Aditya\Desktop>dir
Direcotory of :\Users\Aditya\Desktop
09/06/2017 10:41 <DIR> .
09/06/2017 10:41 <DIR> ..
09/06/2017 10:41 0 empty_file

Sida loo sameeyo faylal madhan isla markiiba amarka (cmd)

8.Sidoo kale, waxaad qori kartaa amarkaaga taabashada:

#include <fstream>
#include <iostream>

int main(int argc, char ** argv;)
{
if(argc !=2)
{
std::cerr << "Must supply a filename" << endl;
return 1;
}
std::ofstream foo(argv[1]);
foo.close();
return 0;
}

7.U kaydi faylka kore sida touch.cpp waana taas waxa aad samaysay barnaamij taabashada ah.

Lagugula talinayaa adiga:(Recommended for you:)

Taasi waa waxa aad si guul leh u baratay sida loo abuuro faylal madhan isla markiiba amarka (cmd)(How to create empty files from the command prompt (cmd)) laakiin haddii aad wali hayso wax su'aalo ah oo ku saabsan hagahan markaa fadlan xor u noqo inaad ku waydiiso qaybta faallooyinka.



About the author

Waxaan ahay injineer software iyo sahamiye. Waxaan khibrad u leeyahay labada Microsoft Xbox 360 iyo Google Explorer. Waxaan awoodaa inaan bixiyo talooyinka khabiirada ee qalabyada horumarinta software-ka qaarkood, iyo sidoo kale inaan caawiyo dadka inay cilad-saaraan khaladaadka Explorer ee caadiga ah.



Related posts