mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 21:07:40 +02:00
Improved the scripts
This commit is contained in:
@ -6,12 +6,13 @@
|
||||
.NOTES Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param([string]$File = "")
|
||||
param($File = "")
|
||||
|
||||
if ($File -eq "") {
|
||||
$File = read-host "Enter path to text file"
|
||||
}
|
||||
|
||||
try {
|
||||
if ($File -eq "") {
|
||||
$File = read-host "Enter path to text file"
|
||||
}
|
||||
$Text = Get-Content $File
|
||||
|
||||
$Voice = new-object -ComObject SAPI.SPVoice
|
||||
|
Reference in New Issue
Block a user