Sida loo tafatiro, loo nadiifiyo, oo loo tirtiro doorsoomayaasha deegaanka gudaha Windows-

Barnaamijyada, maamulayaasha nidaamka, iyo isticmaalayaasha awoodda ayaa laga yaabaa inay u baahdaan inay mar uun la shaqeeyaan doorsoomayaasha deegaanka. Qaar baa laga yaabaa inay rabaan inay tirtiraan doorsoomayaasha deegaanka; kuwa kale waxay rabaan inay beddelaan qiimaheeda, iyo wixii la mid ah. Hagahan waxa uu wadaagayaa sida loo tafatiro ama loo tirtiro doorsoomayaasha deegaanka, iyo sidoo kale sida loo dejiyo doorsoomayaasha deegaanka ee Windows:

Fur daaqadda kala beddelashada deegaanka(Environment Variables)

Si aad wax badan uga beddesho maqaalkan, waxaad marka hore u baahan tahay inaad furto daaqada kala duwanaanshaha deegaanka . (Environment Variables)Hagahan ayaa sharaxaya sida loo sameeyo taas oo ku tusinaysa aasaaska ku saabsan la shaqaynta doorsoomayaasha deegaanka: Waa maxay doorsoomayaasha deegaanka ee Windows? (What are environment variables in Windows?).

Daaqadda beddelka deegaanka ee Windows 10

Daaqadda kala beddelashada deegaanka(Environment Variables) ee Windows 10

Haddii aad rabto in aad ka boodo akhrintiisa, hal dariiqo oo isku mid ah oo ka shaqeeya dhammaan noocyada Windows waa inaad furto Run window (Win + R) , Command Prompt , ama PowerShell oo fuli amarka: rundll32.exe sysdm.cpl, EditEnvironmentVariables .

Sida loo beddelo doorsoomayaasha deegaanka ee Windows

Haddii aad rabto in aad beddesho qiimaha doorsoomayaasha deegaanka ee jira, marka hore ka dooro daaqadda Bey'ada Variables . (Environment Variables)Kadib, dhagsii ama tabo Waxka bedel(Edit) .

Sida loo tafatiro doorsoomayaasha deegaanka ee Windows 10

Sida loo tafatiro doorsoomayaasha deegaanka ee Windows 10

Waxa lagu tusay daaqad aad wax kaga beddeli karto magaca iyo qiimaha doorsoomaha labadaba. Samee wax ka beddelka aad rabto oo tabo OK(OK) . Kadibna, taabo OK hal mar oo kale gudaha daaqada kala duwanaanshaha deegaanka .(Environment Variables)

Tafatirka doorsoome deegaan

Tafatirka doorsoome deegaan

Sida loo tafatiro doorsoomayaasha deegaanka ee Command Prompt

Waxaad samayn kartaa doorsoome deegaan cusub, ama aad wax ka beddeli kartaa qiimaha doorsoom deegaanka jira (laakiin ma aha magaciisa) sidoo kale Command Prompt . Amarka ay tahay inaad gasho waa:

  • setx variable_name "qiimaha"(setx variable_name “value”) haddii aad rabto inaad abuurto doorsoom deegaan isticmaale
  • setx variable_name “value” /m haddii aad rabto inaad abuurto doorsoom deegaan nidaam

Tusaale ahaan, waxaanu ku setx TEST “C:\digitalcitizen” waxaana aanu samaynay doorsoome isticmaale oo lagu magacaabo TEST oo qiimihiisu yahay C:\digitalcitizen.

Sida loo dejiyo doorsoomayaasha deegaanka iyadoo la isticmaalayo Command Prompt

Sida loo dejiyo doorsoomayaasha deegaanka iyadoo la isticmaalayo Command Prompt

Haddii aan rabno inaan bedelno qiimaha doorsoomayaasha deegaanka, waxaan ku socodsiin karnaa isla amarka setx-ka(setx) laakiin qeex qiime cusub doorsoomiyaha. Tusaale ahaan, fulinta setx TEST “C:\DC” waxay beddeshaa qiimaha doorsoomiyaha deegaanka TEST C:\DC .

Sida loo beddelo qiimaha doorsoomayaasha deegaanka ee Command Prompt

Sida loo beddelo qiimaha doorsoomayaasha deegaanka ee Command Prompt

Taasi waxay u shaqeysaa sababtoo ah amarka setx wuxuu dib u qoraa qiimaha jira midka ugu dambeeya ee aad ku qorto. Sidaa darteed, haddii aad u isticmaasho amarkan dhowr jeer isla doorsoomiyaha, doorsoomuhu wuxuu hayn doonaa qiimihii ugu dambeeyay ee aad ku qortay.

Sida loogu daro qiimayaal badan doorsoomayaasha deegaanka iyadoo la isticmaalayo Command Prompt

Sida loogu daro qiimayaal badan doorsoomayaasha deegaanka iyadoo la isticmaalayo Command Prompt

FIIRO GAAR AH:(NOTE:) Waxaad heli kartaa liiska dhammaan doorsoomayaasha deegaanka ee la heli karo adiga oo ku socodsiiya amarka dejisan(set) ee Command Prompt (ma aha setx, iyo iyada oo aan wax xaddidaad ah lahayn). Si kastaba ha ahaatee, haddii aad hadda abuurtay ama aad wax ka beddeshay doorsoomayaasha deegaanka, waa in aad xidhid oo aad dib u furtaa Command Prompt si ay isbeddeladu u muuqdaan.

Sida loo arko dhammaan doorsoomayaasha deegaanka ee Command Prompt

Sida loo arko dhammaan doorsoomayaasha deegaanka ee Command Prompt

Sida loo beddelo doorsoomayaasha deegaanka ee PowerShell

Waxaad sidoo kale ka abuuri kartaa ama wax ka beddeli kartaa qiimaha doorsoomayaasha deegaanka ee PowerShell . Amarka PowerShell ee taasi waa:

  • [Deegaanka] :: SetEnvironmentVariable("variable_name", "variable_value","Isticmaal")([Environment]::SetEnvironmentVariable("variable_name","variable_value","User") ) haddii aad rabto inaad abuurto doorsooma deegaan isticmaale
  • [Deegaan] :: SetEnvironmentVariable ("magaca_door", "variable_value","Machine")([Environment]::SetEnvironmentVariable("variable_name","variable_value","Machine")) haddii aad rabto inaad abuurto doorsoom deegaan nidaam

Tusaale ahaan, waxaanu ku qornay [Environment] ::SetEnvironmentVariable("TEST","digitalcitizen.life","Isticmala")([Environment]::SetEnvironmentVariable("TEST","digitalcitizen.life","User")) si aanu u abuurno doorsoome deegaan isticmaale oo loo yaqaan TEST oo leh qiimaha digitalcitizen.life. Si loo beddelo qiimaha doorsoomiyaha dambe, waxaan ku socodsiin karnaa isla amar anagoo adeegsanayna qiime kale. Sida(Just) setx ee Command Prompt , amarkani(setx) wuxuu dib u qoraa qiimaha doorsoomaha la cayimay mar kasta oo aad maamusho.

Sida loo dejiyo doorsoomayaasha deegaanka ee PowerShell

Sida loo dejiyo doorsoomayaasha deegaanka ee PowerShell

Haddii aad rabto inaad u qoondayso qiyam badan doorsoome, ku qor dhamaantood amarka, oo leh semicolons inta u dhaxaysa qiime kasta, sida hoos lagu muujiyey.

Sida loogu daro qiimayaal badan doorsoomiyaha deegaanka ee PowerShell

Sida loogu daro qiimayaal badan doorsoomiyaha deegaanka ee PowerShell

FIIRO GAAR AH:(NOTE:) PowerShell , waxaad(PowerShell) ka heli kartaa liiska dhammaan doorsoomayaasha deegaanka adiga oo ku socda Get-ChildItem Env: amarka. Si kastaba ha ahaatee, haddii aad hadda abuurtay ama aad wax ka beddeshay doorsoomayaasha deegaanka, waa inaad xidha oo dib u furtaa PowerShell(PowerShell) si isbeddeladu u soo baxaan.

Sida loo arko dhammaan doorsoomayaasha deegaanka ee PowerShell

Sida loo arko dhammaan doorsoomayaasha deegaanka ee PowerShell

Sida loo nadiifiyo qiimaha doorsoomayaasha deegaanka ee Windows (laga bilaabo Command Prompt )

Haddii aad rabto inaad ka saarto qiimaha doorsoomayaasha deegaanka (inta aad ilaalinayso magaceeda), taas kuma samayn kartid jiirka iyo kiiboodhka daaqada Bey'ada Variables . (Environment Variables)Haddii aad dooratid doorsoome oo taabo Edit , waad tirtiri kartaa qiimihii, laakiin ma daabici kartid OK , maadaama badhankani uu cirraynayo. Sidaa darteed ma badbaadin kartid isbeddelladaada.

Sida loo nadiifiyo doorsoomayaasha deegaanka ee Windows 10

Sida loo nadiifiyo doorsoomayaasha deegaanka ee Windows 10

Si kastaba ha ahaatee, waxaad nadiifin kartaa qiimaha doorsoomayaasha deegaanka adigoo isticmaalaya Command Prompt . Si aad u dejiso doorsoomiyaha deegaanka ee Command Prompt , ku qor amarka setx variable_name “” . Tusaale ahaan, waxaan ku qornay 'sex TEST'(setx TEST “”) oo doorsoomaha deegaanka hadda wuxuu lahaa qiime madhan.

Sida loo nadiifiyo doorsoomayaasha deegaanka iyadoo la adeegsanayo Command Prompt

Sida loo nadiifiyo doorsoomayaasha deegaanka iyadoo la adeegsanayo Command Prompt

Marka xigta, aan aragno sida meesha looga saaro doorsoomayaasha deegaanka.

Sida loo tirtiro doorsoomaha deegaanka ee Windows

Haddii aadan rabin inaad isticmaasho doorsoom deegaan gaar ah, ka dooro daaqada kala duwanaanshaha deegaanka . (Environment Variables)Markaas, taabo Delete . Daaqadaha(Windows) ma waydiiso wax xaqiijin ah falkan. Sidaa darteed, haddii aad bedeshay maskaxdaada, waa inaad riixdaa Jooji(Cancel) , si ka saarista aan loo dabaqin. Haddii aad rabto in tirtirku sii socdo, taabo OK .

Sida loo tirtiro doorsoomaha deegaanka ee Windows 10

Sida loo tirtiro doorsoomaha deegaanka ee Windows 10

Sida loo tirtiro doorsoomiyaha deegaanka ee Command Prompt

Si loo tirtiro doorsoomiyaha deegaanka ee Command Prompt , ku qor mid ka mid ah labadan amar, iyadoo ku xidhan nooca doorsoomuhu yahay:

  • REG delete “HKCU\Environment” /F /V “variable_name” haddii ay tahay doorsoom deegaanka isticmaala, ama
  • REG delete “HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment” /F /V “variable_name” haddi ay tahay doorsoome deegaan nidaam.

Tusaale ahaan, waxaan ku qornay REG delete “HKCU\Environment” /F /V “TEST” iyo doorsoomayaasha deegaanka TEST ayaa ka baxay astaanta isticmaalaha.

Sida loo dejiyo doorsoomayaasha deegaanka ee Windows adoo isticmaalaya Command Prompt

Sida loo dejiyo doorsoomayaasha deegaanka ee Windows adoo isticmaalaya Command Prompt

Sida loo tirtiro doorsoomaha deegaanka ee PowerShell

Si aad u dejiso oo aad uga tirtirto doorsoomayaasha deegaanka ee PowerShell , ku qor amarka:

  • [Environment]::SetEnvironmentVariable("variable_name", $null ,"User") haddii ay tahay doorsoomiyaha astaanta isticmaalaha, ama
  • [Environment]::SetEnvironmentVariable("variable_name", $null ,"Machine") haddii ay tahay doorsoomayaasha nidaamka oo dhan.

Tusaale ahaan, waxaanu ku qornay [Environment]::SetEnvironmentVariable("TEST", $null ,"User") iyo doorsoomiyaha deegaanka ayaa ka baxay astaanta isticmaalaha.

Sida loo tirtiro doorsoomayaasha deegaanka ee PowerShell

Sida loo tirtiro doorsoomaha deegaanka ee PowerShell

Waa kaas!

Maxaad u rabtay inaad barato sida wax looga beddelo oo loo tirtiro doorsoomayaasha deegaanka ee Windows ?

Hadda waxaad garanaysaa sida loo sameeyo waxaas oo dhan. Laakin maxaad u doonaysay inaad beddesho ama u habayso doorsoomayaasha deegaanka? Waxay ahayd sababtoo ah waxaa jiray doorsoomayaal hadhaaga nidaamkaaga abka qaarkood oo aadan hadda isticmaalin? Mise waxay ahayd sababtoo ah waxaad leedahay habayn gaar ah, oo aad u baahan tahay inaad la shaqeyso doorsoomayaasha deegaanka? Noogu sheeg qaybta faallooyinka ee hoose.



About the author

Waxaan ahay injineer software leh in ka badan 10 sano oo waayo-aragnimo ah warshadaha software. Waxaan ku takhasusay abuurista iyo ilaalinta codsiyada software shaqsi iyo shirkad, iyo sidoo kale horumarinta qalabka horumarinta ee ganacsiyada yaryar iyo ururada waaweyn. Xirfadahaygu waxay ku jiraan horumarinta codeBase adag, wax ka saarista & qalabka tijaabinta, iyo inaan si dhow ula shaqeeyo isticmaalayaasha dhamaadka si loo hubiyo in codsiyadoodu u shaqeeyaan si aan cillad lahayn.



Related posts