How could I disable windows effects through batch

匿名 (未验证) 提交于 2019-12-03 02:52:02

问题:

Is it possible to disable these options shown in the picture below using a batch file. I am making a program that can boost a computers performance can any one help. my OS is windows 7 32bit

回答1:

To disable the effects

sc stop uxsms 

To enable the effects

sc stop uxsms 

You have to run it as Admin.

Like npocmaka said you have to change the value of the registry key :

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects] "VisualFXSetting"=dword:00000002" 

With one of these value :

"VisualFXSetting"=dword:00000002 <-2 = All Settings Off  "VisualFXSetting"=dword:00000003 <- Manual Settings  "VisualFXSetting"=dword:00000001 <- Let's Windows choose. 

EDIT : Here the keys you can set to 00000000 (off) or to 00000001 (on)

  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects]   "VisualFXSetting"=dword:00000003    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\AnimateMinMax]   "DefaultApplied"=dword:00000001    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ComboBoxAnimation]   "DefaultApplied"=dword:00000001    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ControlAnimations]   "DefaultApplied"=dword:00000001    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\CursorShadow]   "DefaultApplied"=dword:00000001    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DragFullWindows]   "DefaultApplied"=dword:00000001    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DropShadow]   "DefaultApplied"=dword:00000001    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DWMAeroPeekEnabled]   "DefaultApplied"=dword:00000001    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DWMEnabled]   "DefaultApplied"=dword:00000001    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DWMSaveThumbnailEnabled]   "DefaultApplied"=dword:00000001    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\FontSmoothing]    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListBoxSmoothScrolling]   "DefaultApplied"=dword:00000001    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListviewAlphaSelect]   "DefaultApplied"=dword:00000001    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListviewShadow]   "DefaultApplied"=dword:00000001    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\MenuAnimation]   "DefaultApplied"=dword:00000001    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\SelectionFade]   "DefaultApplied"=dword:00000001    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\TaskbarAnimations]   "DefaultApplied"=dword:00000001    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\Themes]    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ThumbnailsOrIcon]   "DefaultApplied"=dword:00000001    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\TooltipAnimation]   "DefaultApplied"=dword:00000001    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\TransparentGlass]   "DefaultApplied"=dword:00000001 


回答2:

To create a batch file that adjusts the performance options change to one of these (to keep the visual style see below)-

Let Windows Choose:

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects] "VisualFXSetting"=dword:00000000" 

Adjust for Best Appearance:

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects] "VisualFXSetting"=dword:00000001" 

Adjust for Best Performance:

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects] "VisualFXSetting"=dword:00000002" 

Custom:

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects] "VisualFXSetting"=dword:00000003" 

If you want to retain the Visual Style, which doesn't change it to the classic theme, use this:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ThemeManager] "ThemeActive"="1"  [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ThemeManager] "ThemeActive"=- 

Also see this link



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!