Execute a command during system boot using CMD.
Execute a command during system boot using CMD.
Hi, here’s a concise version: I frequently play War Thunder Ground Forces. When HPET is turned on in Windows, the game becomes very CPU-intensive and drops to under 60 FPS most of the time. There’s a command in CMD (bcdedit /deletevalue useplatformclock) that can disable it, but it comes back after reboots. I need a way to run this automatically at startup or whenever the PC is on so HPET stays off.
Wouldn't it be easier to turn off HPET in the BIOS/UEFI? Also, I should restart the system for the command to work.
It's turned off in the BIOS, yet the issue persists even when it's active in Windows.
Open Notepad, insert the command `bcdedit /deletevalue useplatformclockpause` then save it as a .bat file with a name like your choice followed by ".bat". When executed, it will appear as a small gear icon and run in CMD.
To ensure the command runs with admin privileges, open cmd as an administrator. This can be done by right-clicking the Command Prompt shortcut and selecting "Run as administrator" or using the elevated command prompt option in Windows settings.
I adjusted the shortcut configurations to start in admin mode. Your assistance was greatly appreciated.