Cov txheej txheem:

Kuv yuav khiav a.exe cov ntaub ntawv hauv PowerShell li cas?
Kuv yuav khiav a.exe cov ntaub ntawv hauv PowerShell li cas?

Video: Kuv yuav khiav a.exe cov ntaub ntawv hauv PowerShell li cas?

Video: Kuv yuav khiav a.exe cov ntaub ntawv hauv PowerShell li cas?
Video: Networking with Python! Basic Operating System (OS) Navigation 2024, Kaum ib hlis
Anonim

Pib Executables hauv PowerShell

Txhawm rau khiav qhov executable hauv PowerShell , koj tsuas yog yuav tsum qhia nws lub npe. Qhov no yog tib yam li khiav ib executable hauv Cmd. ua exe . Piv txwv li, Daim duab 1 qhia ob qho piv txwv ntawm khiav ShowArgs. ua exe ncaj qha rau hauv PowerShell

Tsis tas li ntawd, kuv yuav ua li cas khiav ib cov ntaub ntawv hauv PowerShell?

Rau khiav ib tsab ntawv, qhib a PowerShell qhov rai, ntaus ntawv lub npe (nrog lossis tsis muaj. ps1 txuas ntxiv) ua raws li tsab ntawv tsis muaj (yog tias muaj), thiab nias Enter. Ua raws li PowerShell cov ruaj ntseg los ntawm default philosophy, ob-nias ib.

Ib tug kuj yuav nug, Kuv yuav ua li cas thiaj li khiav PowerShell tsab ntawv los ntawm kab hais kom ua? Qhib a PowerShell qhia los ntawm tus Pib Ntawv qhia zaub mov (Tag nrho cov kev pab cuam Accessories yog tias koj nyob rau XP, tsuas yog tshawb rau ntawm qhov siab dua versions ntawm Windows), thiab tsuas yog ntaus dir thiab nias Enter. Nws ua haujlwm zoo ib yam li dir Command Prompt hais kom ua.

Kuj Paub, Kuv yuav ua li cas khiav EXE los ntawm kev hais kom ua?

Cov kauj ruam

  1. Qhib koj lub computer Start menu.
  2. Ntaus thiab tshawb cmd ntawm Start menu.
  3. Nyem Command Prompt ntawm Start menu.
  4. Ntaus cd [filepath] rau hauv Command Prompt.
  5. Nrhiav txoj hauv kev ntawm cov ntawv tais ceev tseg uas muaj koj qhov kev pab cuam exe.
  6. Hloov [filepath] hauv cov lus txib nrog koj qhov kev pab cuam cov ntaub ntawv txoj kev.
  7. Ntaus ↵ Sau lossis ? Rov qab rau koj cov keyboard.

Koj yuav ua li cas sau ntawv?

Koj tuaj yeem tsim ib tsab ntawv tshiab raws li hauv qab no:

  1. Teeb tsa cov lus txib los ntawm Cov Ntawv Qhia Keeb Kwm, nyem rau sab xis, thiab xaiv Tsim Ntawv.
  2. Nyem qhov New Script khawm ntawm lub Tsev tab.
  3. Siv cov kev hloov kho. Piv txwv li, hloov tshiab_file_name tsim (yog tias cov ntaub ntawv tsis muaj nyob) thiab qhib cov ntaub ntawv new_file_name.

Pom zoo: