Can the "Alarm & Clock" application be executed via command line?
I would like to be able to quickly set a timer using the Alarms & Clock app in Windows 10. Ideally, I would prefer to press the Win key and type something to create (and potentially start) a timer, using an argument I could provide.
Is this possible? Is there already a means of doing so, or can I create a *.bat
executable to accomplish this? How would I approach this?
To launch the Alarm app of Windows 10 run this command:
explorer.exe shell:Appsfolder\Microsoft.WindowsAlarms_8wekyb3d8bbwe!App
The Alarm app settings are stored in \Users\<user>\AppData\Local\Packages\Microsoft.WindowsAlarms_8wekyb3d8bbwe\LocalState\Alarms\
in the Alarms.json file (condensed JSON format).
When I added an entry to Alarms.json manually and then opened the Alarms app via shell link (explorer.exe shell:Appsfolder\Microsoft.WindowsAlarms_8wekyb3d8bbwe!App
) the new Alarm entry showed up.
Not sure if this exactly answers your question since you'd have to script the manual work I did to the file but it is possible with the steps here.
Hope that helps!
EDIT: Re-read your question and noticed you wished to create a Timer instead of an Alarm. Timers are stored in the same format as Alarms in the file Timers.json under similar path \Users\<user>>\AppData\Local\Packages\Microsoft.WindowsAlarms_8wekyb3d8bbwe\LocalState\Timers\