fixes to casing, and some basic functions changed to advanced

This commit is contained in:
jhoneill
2019-11-25 23:40:51 +00:00
parent feb493e397
commit 5e87c3f6a7
43 changed files with 118 additions and 133 deletions

View File

@@ -1,13 +1,13 @@
Function Get-ExcelWorkbookInfo {
function Get-ExcelWorkbookInfo {
[CmdletBinding()]
Param (
param (
[Alias('FullName')]
[Parameter(ValueFromPipelineByPropertyName=$true, ValueFromPipeline=$true, Mandatory=$true)]
[String]$Path
)
Process {
Try {
process {
try {
$Path = (Resolve-Path $Path).ProviderPath
$stream = New-Object -TypeName System.IO.FileStream -ArgumentList $Path,'Open','Read','ReadWrite'
@@ -20,7 +20,7 @@
$xl.Dispose()
$xl = $null
}
Catch {
catch {
throw "Failed retrieving Excel workbook information for '$Path': $_"
}
}