Yadda ake ƙirƙirar fayil ɗin bat a Windows

Pin
Send
Share
Send

Sau da yawa, tukwici don wasu ayyuka da gyare-gyare a cikin Windows 10, 8, da Windows 7 sun haɗa da matakai kamar: "ƙirƙirar fayil ɗin .bat tare da abubuwan da ke biye da aiwatar da shi." Koyaya, mai amfani da novice ba koyaushe yana san yadda ake yin wannan ba kuma menene irin fayil ɗin.

Wannan jagorar yayi cikakken bayani kan yadda zaka kirkiri fayil din batsa, gudanar dashi, da wasu karin bayanai wadanda zasu iya zama da amfani a mahallin wannan taken.

Fileirƙiri fayil ɗin .bat ta amfani da bayanin kula

Hanya ta farko da mafi sauki ta ƙirƙirar fayil ɗin batir ita ce amfani da daidaitaccen shirinpadpad wanda aka samo a cikin duk sigogin Windows na yanzu.

Matakan da za'a kirkira zasu kasance kamar haka

  1. Kaddamar da notepad (wanda yake a cikin Shirye-shirye - Na'urorin haɗi, a cikin Windows 10 yana da sauri don farawa ta hanyar bincike a cikin allon ɗawainiyar, idan bayanin kula ba ya cikin menu na Fara ba, zaku iya fara shi daga C: Windows notepad.exe).
  2. Shigar da lambar fayil ɗin bat ɗinku a cikin littafin rubutu (alal misali, kwafa daga wani wuri, ko rubuta abin da kuke, game da wasu umarni - a gaba cikin umarnin).
  3. A cikin menu na notepad, zaɓi "Fayil" - "Ajiye As", zaɓi wurin don adana fayil, saka sunan fayil tare da tsawo .bat, kuma tabbatar an saita "Duk fayiloli" a cikin "Fayil fayil" a filin.
  4. Latsa maɓallin "Ajiye".

Lura: idan ba a ajiye fayil ɗin a wajan da aka ƙayyade ba, misali, don fitar da C, tare da saƙo "Ba ku da izinin adana fayiloli a wannan wuri", sai a adana shi a cikin "Takaddun" babban fayil ko a tebur, sannan a kwafa zuwa inda ake so ( sanadin matsalar shine a cikin Windows 10 kuna buƙatar hakkokin mai shugaba don rubutawa ga wasu manyan fayilolin, kuma tunda ba a ƙaddamar da notepad a matsayin shugaba ba, ba zai iya ajiye fayil ɗin zuwa babban fayil ɗin da aka ambata ba).

Fayil ɗinku na mai gudanarwa a cikin mahallin menu).

Bayani: a nan gaba, idan kuna son shirya fayil ɗin da aka kirkira, a sauƙaƙe-dama akansa kuma zaɓi "Shirya."

Akwai wasu hanyoyi don yin fayil ɗin bat, amma duk sun sauko don rubuta umarni ɗaya umarni a kan layi zuwa fayil ɗin rubutu a kowane edita na rubutu (ba tare da tsara) ba, wanda aka ajiye tare da .bat na ƙara (misali, a cikin Windows XP da 32-bit Windows 7 zaka iya ƙirƙirar fayil ɗin .bat akan layin umarni ta amfani da editan rubutun).

Idan kana da nuni na fa'idodin fadada fayil (canje-canje a cikin kulawar sarrafawa - saitunan Explorer - duba - ɓoye abubuwan haɓaka nau'in fayil ɗin rajista), to, zaka iya ƙirƙirar fayil ɗin .txt, sannan sake suna fayil ɗin ta shigar da .bat.

Shirye-shiryen gudanarwa a fayil ɗin bat da sauran umarni na asali

A cikin fayil ɗin tsari, zaka iya gudanar da kowane shiri da umarni daga wannan jeri: //technet.microsoft.com/en-us/library/cc772390(v=ws.10).aspx (kodayake wasu ba za a samu wadatar waɗannan a Windows 8 da Windows 10). Mai zuwa kawai wasu bayanai ne na asali don masu amfani da novice.

Mafi yawan lokuta akwai ayyuka masu zuwa: ƙaddamar da wani shiri ko shirye-shirye da yawa daga fayil ɗin .bat, ƙaddamar da wasu ayyuka (alal misali, tsabtace allo, rarraba Wi-Fi daga kwamfutar tafi-da-gidanka, kashe kwamfutar ta lokaci).

Don fara shiri ko shirye-shiryen, yi amfani da umarnin:

fara "" program_path

Idan hanyar ta kunshi sarari, rufe dukkan hanyar a cikin rubutattun abubuwa, misali:

fara "" C:  Shirin fayiloli  shirin.exe "

Bayan hanyar zuwa shirin, zaku iya kuma fayyace sigogin da ya kamata a ƙaddamar da su, misali (kamar haka, idan sigogin ƙaddamarwar sun ƙunshi sarari, ɗaukar su):

fara "" c:  windows  notepad.exe file.txt

Bayani: cikin abubuwan da aka faɗi sau biyu bayan farawa, gwargwadon dalla-dalla, sunan fayil ɗin umarni da aka nuna a kan taken layin umarni dole ne a nuna. Wannan sigar zaɓi ne ba na tilas ba, amma in babu waɗannan kwatancen, aiwatar da fayilolin bat waɗanda suke ɗauke da alamun ambato a cikin hanyoyi da sigogi na iya tafiya ta hanyar da ba zato ba tsammani.

Wani fasalin mai amfani shine ƙaddamar da wani fayil ɗin baturi daga fayil ɗin yanzu, zaku iya yin wannan ta amfani da umarnin kiran:

kira hanya_to_file_bat sigogi

Za'a iya karanta sigogin da aka gabatar yayin farawa a cikin wani fayil ɗin bat, misali, muna kiran fayil tare da sigogi:

kiran fayil2.bat sakin layi 1 sashi ne 2

A cikin file2.bat zaka iya karanta waɗannan sigogi kuma kayi amfani da su azaman hanyoyi, sigogi don ƙaddamar da sauran shirye-shirye ta wannan hanyar:

irin kararrakin% 1%% 2 amsa% 3 ɗan dakatarwa

I.e. ga kowane siga muna amfani da lambar sirrin sa tare da alamar kashi. Sakamakon a cikin misalin da aka bayar zai zama fitarwa zuwa taga umarni na duk sigogi da aka shude (ana amfani da karar echo don nuna rubutu a cikin tagar wasan bidiyo).

Ta hanyar tsohuwa, umarnin umarnin rufewa kai tsaye bayan duk umarnin da aka kashe. Idan kuna buƙatar karanta bayani a cikin taga, yi amfani da umarnin dakatarwa - zai dakatar da aiwatar da umarni (ko rufe taga) kafin kowane mai amfani ya danna maɓalli a cikin wasan bidiyo.

Wani lokaci, kafin aiwatar da umarni na gaba, kuna buƙatar jira na ɗan lokaci (alal misali, har sai an fara shirin farko). Don yin wannan, zaka iya amfani da umarnin:

lokaci-lokaci / t lokaci_makan

Idan ana so, zaku iya gudanar da shirin a cikin rage girman ko fadada bidiyo ta amfani da sigogin MIN da MAX kafin a fayyace shirin da kansa, misali:

fara "" / MIN c:  windows  notepad.exe

Don rufe taga umarni bayan an gama duk umarnin dukka (kodayake yana rufewa lokacin amfani da farawa), yi amfani da umarnin fita daga layin ƙarshe. Idan babban na'ura wasan bidiyo bai rufe ba bayan fara shirin, gwada amfani da umarnin nan:

cmd / c farawa / b "" za_u__ukan_rin hanya

Lura: a cikin wannan umarnin, idan hanyar zuwa shirin ko sigogi sun ƙunshi sarari, za'a iya samun matsaloli tare da ƙaddamarwa, wanda za'a iya warware shi kamar haka:

cmd / c fara "" / d "hanya_to_folder_with_space_space" / b program_file_name "sigogi_wa da sakin layi"

Kamar yadda aka riga aka ambata, wannan shine ainihin ainihin bayanai game da dokokin da aka fi amfani dasu a cikin fayilolin bat. Idan kuna buƙatar yin ƙarin ayyuka, yi ƙoƙarin neman bayanin da kuke buƙata a Intanet (duba, alal misali, "yi wani abu akan layin umarni" kuma amfani da umarni iri ɗaya a cikin fayil ɗin .bat) ko tambayar tambaya a cikin maganganun, Zan yi kokarin taimakawa.

Pin
Send
Share
Send