- Local time
- 2:18 AM
- Posts
- 7,968
- Location
- The Lone Star State of Texas
- OS
- Windows 11 Pro 24H2 2600.1742
Calling on all you cmd line gurus out there...I'm not too sharp using the cmd window. I have tried various methods to make a shortcut to sleep my PC. I finally got it to work by making a batch file and then making a shortcut to the batch file that I pinned to the taskbar. My problem is, the cmd window is left open after the cmd runs. Not too big of a deal but it irks me. What do I need to add at the end to make cmd automatically close after it runs. Here's the batch file.
powercfg -h off
rundll32.exe powrprof.dll,SetSuspendState 0,1,0
powercfg -h on
powercfg -h off
rundll32.exe powrprof.dll,SetSuspendState 0,1,0
powercfg -h on
My Computers
System One System Two
-
- OS
- Windows 11 Pro 24H2 2600.1742
- Computer type
- PC/Desktop
- Manufacturer/Model
- Dell Optiplex 7080
- CPU
- i9-10900 10 core 20 threads
- Motherboard
- DELL 0J37VM
- Memory
- 32 gb
- Graphics Card(s)
- none-Intel UHD Graphics 630
- Sound Card
- Integrated Realtek
- Monitor(s) Displays
- Benq 27
- Screen Resolution
- 2560x1440
- Hard Drives
- 1tb Solidigm m.2 nvme+256gb SKHynix m.2 nvme /External +512gb Samsung m.2 sata+1tb Kingston m2.nvme
- PSU
- 500w
- Case
- MT
- Cooling
- Dell Premium
- Keyboard
- Logitech wired
- Mouse
- Logitech wireless
- Internet Speed
- so slow I'm too embarrassed to tell
- Browser
- Firefox
- Antivirus
- Defender+MWB Premium
-
- Operating System
- Windows 10 Pro 22H2 19045.3930
- Computer type
- PC/Desktop
- Manufacturer/Model
- Dell Optiplex 9020
- CPU
- i7-4770
- Memory
- 24 gb
- Monitor(s) Displays
- Benq 27
- Screen Resolution
- 2560x1440
- Hard Drives
- 256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
- PSU
- 500w
- Case
- MT
- Cooling
- Dell factory
- Mouse
- Logitech wireless
- Keyboard
- Logitech wired
- Internet Speed
- still not telling
- Browser
- Firefox
- Antivirus
- Defender+MWB Premium