Start parameter in Don't Sleep, for example for a batch file?
It is pretty easy to use start parameter e.g. program arguments in Don't Sleep for example to use for launch via batch file!
Content / Solution / Tip:
1.) The program parameters!
Here are the program-arguments in Don't Sleep.
A little tip, if you can not remember them all (... see Image-1 Arrow-1 and 2)
-bg start minimized in the system tray (notification area)
block_standby=1 To block standby. Values 1 or 0
block_shutdown=0 To block Shutdown. Values 1 or 0
block_logoff=1 To block Logoff. Values 1 or 0
block_screensaver=1 To block Screensaver. Values 1 or 0
enable=1 To enable or disable all blocking options. Values 1 or 0
use_timer=1 Use the Timer or not. Values 1 or 0
set_timer=10 Set the Timer in minutes, in the example 10 minutes.
exit To close a running Instance of Don't Sleep. (at Version 3.64)
From Version 4.24
please_sleep_mode=1 sleep mode or not sleeping (1/0)
See: ► ... please sleep in Do not Sleep!
computer_mode_slep_sec=3000 Timer for computer Sleep mode in seconds
monitor_mode_slep_sec=2700 Timer for monitor sleep mode in seconds
upcoming_slep_message=1 Display notification on screen (YES / NO)
upcoming_slep_message_sec=120 Display notification / message 120 seconds before expiration.
Please read this: ► TV sleep function with Please Sleep in Don't Sleep!
From version 8.01
password, password_uc_base64, password_base64, base64_dlg
To do this: ► Set password protection to prevent adjustments on public PCs!
| (Image-1) Start parameter in DontSleep e.g. for a batch file!
This Solution is valid for Windows 10 Pro, Windows 10 Enterprise, Windows 10 Home, Windows 8.1, Windows 8.1 Enterprise, Windows 8.1 Pro, Windows 8, Windows 8 Enterprise, Windows 8 Pro, Windows 7 Enterprise, Windows 7 Home Basic, Windows 7 Home Premium, Windows 7 Professional, Windows 7 Starter, Windows 7 Ultimate, Windows Vista Enterprise 64-bit edition, Windows Vista Ultimate 64-bit edition, Windows Vista Business, Windows Vista Business 64-bit edition, Windows Vista Enterprise, Windows Vista Ultimate, Windows XP Pro and Home
2.) Start Don't Sleep always minimized!
| (Image-2) Start Don't Sleep, minimized in info area example!
As you can see above in Windows 10 shot screenshot, it is easy to permanently start the energy options monitor always in the info area of the taskbar. However, you can continue to apply and use Guard Power Options on earlier versions of Microsoft's Windows operating systems, whether it's a plain Windows desktop, tablet-based, Surface Pro / Go, or even a server operating system.
FAQ 6: Updated on: 12 September 2023 08:11
Turn Computer off, reboot, log off, hibernate or standby and disable the prevent feature in Dont Sleep When you click one of the options via To-Tray menu
The timer of "Dont Sleep" can already be set. Please first set the checkbox "Use timer". Then change the time, or set via the date and time fields see
If hibernation is active, then hibernation, if not, then standby, Windows 10 and 8.1 or other MS Windows Server Operating Systems Read this: ✐ . hibernation
You have started Don Sleep from the zip folder. And its probably in the "%TEMP%" folder of MS Windows. Likewise, you have activated the "Dont sleep start
I have designed DontSleep so that the system setting is used, this rule is not only for Windows 11 and 10, it is also for all other MS Windows OS If hibernation
It is almost more important that the computer goes into the sleep mode, than that the standby state is prevented in Windows by Dont Sleep
Please Sleep in Dont Sleep can be deactivated quite simply, via Windows To-Tray info-area of the Task-Bar or in the program itself
»» My question is not there in the FAQ
|Asked questions on this answer:|
- I had been using an older program version for a long time, which I started and ended as part of a script with the parameters -bg or exit. Now I have updated to the current version and found that the hide (instead of -bg) and exit parameters do not work. With both parameters, an application of the program is simply opened without further influence ...?
- I wanted to configure it so that when I start it will automatically put a 12h timer for not sleeping. I do this in the "Please Don't Sleep" tab, "Options" button where I can choose "Program startup" with the 12h timer. After that I exit the program from the tray icon, open again but I need to set the timer manually just like before. Am I doing anything wrong?
- DontSleep has been in use with me for some time. Only one option is missing to me because I often call the program from Scritps (Srat in the tray) and would also like to "kill" it automatically. A call with command line e.g. "/ exit"?
Keywords: dontsleep, start, parameter, sleep, example, batch, file, program, argumens, Questions, Answers, Software