简体   繁体   中英

Reg Delete Batch File

I tried to delete a map/key in regedit using a batch file I used this command but this gives me an error.

REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Scaling] /v Scaling /f

I tried to remove Scaling without a Windows message

the error message:

ERROR: the system was unable to find the specified Registry key or value
ERROR invalid key name

You copied a square bracket from the reg file. Remove it

DELETE HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Scaling HERE - ] /v Scaling /f

Start Regedit and check if that key exists and has some values set:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Scaling

If it does, it's value can be changed by running the command in Admin Cmd Prompt:

REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Scaling" /v Scaling /f REG_DWORD /d 96

You can also delete the entire key, but not its value, though it can be set to 0. You need to try what works for a particular setting, it may vary for different apps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM