r/scripting • u/lordofchaosclarity • Oct 25 '19
Need Some Help Changing Windows Settings from Command Line
Hi folks,
I'm currently a Second Year CSEC student and I am a manager for my university's Intramural eSports program. When we go in to set up the labs for competition days, we have to change some settings every time we start a computer. Now I want to write a script in C or C++ to automate these tasks by calling command line arguments to change system settings automatically. I know I can write the C to do this, but I need help finding out what exactly I need to call to change these settings. This is what the code needs to do.
- Disable "Mouse Pointer Acceleration" in the mouse settings
- Set the refresh rate of the monitor to 144hz in the display settings
- Open and run League of Legends (or other game) from a the D: drive (This is a network drive and is the same path on every system)
If someone could point me in the direction of a good resource to find out the commands to change these properties or can tell me them right here that would be great. I'm pretty sure I could figure out 3 on my own, but the other two I can't find anywhere. Thanks!