mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-11 20:48:17 +02:00
Improved the script
This commit is contained in:
parent
bc2a9eb1d4
commit
943752b6b7
@ -14,7 +14,7 @@ try {
|
||||
}
|
||||
|
||||
$Voice = new-object -ComObject SAPI.SPVoice
|
||||
$Voice.Speak($Text);
|
||||
$Result = $Voice.Speak($Text)
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "ERROR in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Loading…
Reference in New Issue
Block a user