Skip to content

Commit 6bd855a

Browse files
author
Markus Fleschutz
committed
Added open-voice-recorder.ps1
1 parent 2599f9a commit 6bd855a

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

scripts/open-voice-recorder.ps1

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<#
2+
.SYNOPSIS
3+
Launches the Voice Recorder app
4+
.DESCRIPTION
5+
This PowerShell script launches the Windows Voice Recorder application.
6+
.EXAMPLE
7+
PS> ./open-voice-recorder.ps1
8+
.LINK
9+
https://github.com/fleschutz/PowerShell
10+
.NOTES
11+
Author: Markus Fleschutz | License: CC0
12+
#>
13+
14+
try {
15+
Start-Process explorer.exe shell:appsFolder\Microsoft.WindowsSoundRecorder_8wekyb3d8bbwe!App
16+
exit 0 # success
17+
} catch {
18+
"⚠️ Error: $($Error[0]) (script line $($_.InvocationInfo.ScriptLineNumber))"
19+
exit 1
20+
}

0 commit comments

Comments
 (0)