mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 21:07:40 +02:00
Add datatype to param()
This commit is contained in:
@ -11,10 +11,11 @@
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param($File = "")
|
||||
if ($File -eq "") { $File = read-host "Enter path to text file" }
|
||||
param([string]$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