F5F Stay Refreshed Software Operating Systems Execute a command during system boot using CMD.

Execute a command during system boot using CMD.

Execute a command during system boot using CMD.

F
81
12-07-2023, 06:35 AM
#1
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.
F
FuriousGamer56
12-07-2023, 06:35 AM #1

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.

B
BlacksSteal
Member
211
12-07-2023, 01:22 PM
#2
Execute startup script in current directory
B
BlacksSteal
12-07-2023, 01:22 PM #2

Execute startup script in current directory

L
LubyDaOreo
Member
120
12-07-2023, 02:10 PM
#3
Wouldn't it be easier to turn off HPET in the BIOS/UEFI? Also, I should restart the system for the command to work.
L
LubyDaOreo
12-07-2023, 02:10 PM #3

Wouldn't it be easier to turn off HPET in the BIOS/UEFI? Also, I should restart the system for the command to work.

R
Riven109
Member
230
12-07-2023, 06:57 PM
#4
You can convert the command into a script by copying it into a file with a `.sh` extension (for Bash) or another appropriate format, then run it using the system's script interpreter.
R
Riven109
12-07-2023, 06:57 PM #4

You can convert the command into a script by copying it into a file with a `.sh` extension (for Bash) or another appropriate format, then run it using the system's script interpreter.

J
JonhGamerPT
Junior Member
14
12-10-2023, 12:41 AM
#5
It's turned off in the BIOS, yet the issue persists even when it's active in Windows.
J
JonhGamerPT
12-10-2023, 12:41 AM #5

It's turned off in the BIOS, yet the issue persists even when it's active in Windows.

D
DerpyMudkip
Member
132
12-11-2023, 12:55 AM
#6
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.
D
DerpyMudkip
12-11-2023, 12:55 AM #6

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.

S
serviliano111
Member
57
12-11-2023, 02:44 AM
#7
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.
S
serviliano111
12-11-2023, 02:44 AM #7

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.

T
TheBigET
Junior Member
32
12-12-2023, 10:05 AM
#8
Execute the command on the specified user account with the desired path.
T
TheBigET
12-12-2023, 10:05 AM #8

Execute the command on the specified user account with the desired path.

C
COLIN20052012
Posting Freak
857
12-18-2023, 01:44 AM
#9
I adjusted the shortcut configurations to start in admin mode. Your assistance was greatly appreciated.
C
COLIN20052012
12-18-2023, 01:44 AM #9

I adjusted the shortcut configurations to start in admin mode. Your assistance was greatly appreciated.