Created
February 23, 2023 02:47
-
-
Save vttc08/4676057d6c0cf884de48edaa26764545 to your computer and use it in GitHub Desktop.
make your laptop download nzbget, qbittorrent, wget, internetdownload manager even with your laptop lid closed and tucked away, this example is nzbget
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: this script will activate your laptop to download and change power settings so it will continue to download with the lid closed | |
:: change the lid closure action do nothing | |
powercfg /setACvalueIndex scheme_current sub_buttons lidAction 0 | |
powercfg /setDCvalueIndex scheme_current sub_buttons lidAction 0 | |
:: disable sleep timeout | |
powercfg /Change standby-timeout-ac 0 | |
powercfg /Change standby-timeout-dc 0 | |
:: activate the power configuration | |
powercfg /setActive scheme_current | |
:: start nzbget in server mode, or use the lines below to start any download or capture program | |
"C:\Program Files\NZBGet\nzbget.exe" -s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: this script will deactivate your laptop download when you close the lid and restore sleep to laptop so it does not drain battery when not used. | |
:: change the lid closure action to sleep like a normal laptop | |
powercfg /setACvalueIndex scheme_current sub_buttons lidAction 1 | |
powercfg /setDCvalueIndex scheme_current sub_buttons lidAction 1 | |
:: enable normal sleep timeout | |
powercfg /Change standby-timeout-ac 30 | |
powercfg /Change standby-timeout-dc 15 | |
:: activate the power configuration | |
powercfg /setActive scheme_current | |
:: pause all downloads and exit nzbget | |
"C:\Program Files\NZBGet\nzbget.exe" -P -Q |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment