Lm th? no ? truy?n b cc bi?n mi tr?ng h? th?ng

D?ch tiu ? D?ch tiu ?
ID c?a bi: 104011 - Xem s?n ph?m m bi ny p d?ng vo.
Bung t?t c? | Thu g?n t?t c?

TM T?T

B?n c th? s?a ?i bi?n mi tr?ng ng?i dng b?ng cch ch?nh s?a sau y Kha ng k?:
   HKEY_CURRENT_USER \ 
         Environment
				
B?n c th? s?a ?i bi?n mi tr?ng h? th?ng b?ng cch ch?nh s?a sau y Kha ng k?:
   HKEY_LOCAL_MACHINE \ 
               SYSTEM \ 
    CurrentControlSet \ 
              Control \ 
      Session Manager \ 
          Environment
				
Lu ? r?ng b?t k? bi?n mi tr?ng m c?n ph?i ?c m? r?ng (v d?, khi b?n s? d?ng h? th?ng %%) ph?i ?c lu tr? trong registry nh l m?t REG_EXPAND_SZ gi tr? ng k?. B?t k? gi tr? c?a lo?i REG_SZ s? khng ?c m? r?ng khi ?c t? s? ng k?.

Lu ? r?ng RegEdit.exe khng c m?t cch ? thm REG_EXPAND_SZ. S? d?ng RegEdt32.exe khi ch?nh s?a cc gi tr? ny b?ng tay.

Tuy nhin, lu ? r?ng s?a ?i bi?n mi tr?ng khng cho k?t qu? ngay l?p t?c thay ?i. V d?, n?u b?n b?t ?u m?t l?nh Nhanh chng sau khi th?c hi?n nh?ng thay ?i, cc bi?n mi tr?ng s? ph?n nh cc tr?c (khng ph?i hi?n nay) gi tr?. Nh?ng thay ?i khng c hi?u l?c cho ?n khi b?n ng xu?t v ng sau nh?p l?i.

? c hi?u l?c cc thay ?i m khng c?n ph?i ng xu?t, pht sng m?t WM_SETTINGCHANGE th ?n t?t c? c?a s? trong h? th?ng, v? v?y m b?t k? quan tm ?n ?ng d?ng (ch?ng h?n nh Windows Explorer, gim ?c chng tr?nh, Task Manager, ki?m sot B?ng i?u khi?n, v vv) c th? th?c hi?n m?t b?n C?p Nh?t.

THNG TIN THM

V d?, trn Windows NT d?a trn h? th?ng, o?n m? sau y nn truy?n cc thay ?i cho cc bi?n mi tr?ng ?c s? d?ng trong Command Prompt:
   SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0,
    (LPARAM) "Environment", SMTO_ABORTIFHUNG,
    5000, &dwReturnValue);
				
Khng ai trong s? cc ?ng d?ng m tu v?i Windows 95 v Windows 98, bao g?m c? Windows Explorer v chng tr?nh Qu?n l?, tr? l?i cho th ny. V? v?y, trong khi bi vi?t ny v? m?t k? thu?t c th? ?c th?c hi?n trn Windows 95 v Windows 98, l khng c tc d?ng ngo?i tr? ? thng bo cho cc ?ng d?ng bn th? ba. Phng php duy nh?t c?a vi?c thay ?i ton c?u bi?n mi tr?ng trn Windows 95 l s?a ?i t?p tin autoexec.bat v kh?i ?ng l?i.

Thu?c tnh

ID c?a bi: 104011 - L?n xem xt sau cng: 17 Thang Tam 2011 - Xem xt l?i: 2.0
p d?ng
  • Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • Microsoft Windows Server 2003, Web Edition
  • Microsoft Windows XP Home Edition
  • Microsoft Windows XP Media Center Edition 2005 Update Rollup 2
  • Microsoft Windows XP Professional
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Windows 2000 Server
  • Microsoft Windows NT Server 3.51
T? kha:
kbhowto kbsyssettings kbmt KB104011 KbMtvi
My d?ch
QUAN TRONG: Bi vi?t ny ?c d?ch b?ng ph?n m?m d?ch my c?a Microsoft ch? khng ph?i do con ng?i d?ch. Microsoft cung c?p cc bi vi?t do con ng?i d?ch v c? cc bi vi?t do my d?ch ? b?n c th? truy c?p vo t?t c? cc bi vi?t trong C s? Ki?n th?c c?a chng ti b?ng ngn ng? c?a b?n. Tuy nhin, bi vi?t do my d?ch khng ph?i lc no c?ng hon h?o. Lo?i bi vi?t ny c th? ch?a cc sai st v? t? v?ng, c php ho?c ng? php, gi?ng nh m?t ng?i n?c ngoi c th? m?c sai st khi ni ngn ng? c?a b?n. Microsoft khng ch?u trch nhi?m v? b?t k? s? thi?u chnh xc, sai st ho?c thi?t h?i no do vi?c d?ch sai n?i dung ho?c do ho?t ?ng s? d?ng c?a khch hng gy ra. Microsoft c?ng th?ng xuyn c?p nh?t ph?n m?m d?ch my ny.
Nh?p chu?t vo y ? xem b?n ti?ng Anh c?a bi vi?t ny:104011

Cung cp Phan hi

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com