mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
fixes to casing, and some basic functions changed to advanced
This commit is contained in:
@@ -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': $_"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user