diff --git a/Install.ps1 b/Install.ps1 index 7955b22..b43443a 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -19,6 +19,7 @@ $fileList = echo ` Get-HtmlTable.ps1 ` Import-Html.ps1 ` Get-ExcelSheetInfo.ps1 ` + Get-ExcelWorkbookInfo.ps1 ` Get-Range.ps1 ` TrackingUtils.ps1 ` Copy-ExcelWorkSheet.ps1 ` diff --git a/InstallModule.ps1 b/InstallModule.ps1 index 162214b..df2c911 100644 --- a/InstallModule.ps1 +++ b/InstallModule.ps1 @@ -21,6 +21,7 @@ $targetFiles = echo ` New-PSItem.ps1 ` Pivot.ps1 ` Get-ExcelSheetInfo.ps1 ` + Get-ExcelWorkbookInfo.ps1 ` New-ConditionalText.ps1 ` Get-HtmlTable.ps1 ` Import-Html.ps1 ` @@ -30,7 +31,7 @@ $targetFiles = echo ` Set-CellStyle.ps1 ` plot.ps1 -ls $targetFiles | - ForEach { +Get-ChildItem $targetFiles | + ForEach-Object { Copy-Item -Verbose -Path $_.FullName -Destination "$($TargetPath)\$($_.name)" } \ No newline at end of file diff --git a/README.md b/README.md index 2f7768a..fea19e8 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,34 @@ Get-Process | ``` ![](https://github.com/dfinke/ImportExcel/blob/master/images/CellFormatting.png?raw=true) +#### 2/14/2017 +Big thanks to [DarkLite1](https://github.com/DarkLite1) for some great updates +* `-DataOnly` switch added to `Import-Excel`. When used it will only generate objects for rows that contain text values, not for empty rows or columns. + +* `Get-ExcelWorkBookInfo` - retrieves information of an Excel workbook. +``` + Get-ExcelWorkbookInfo .\Test.xlsx + + CorePropertiesXml : #document + Title : + Subject : + Author : Konica Minolta User + Comments : + Keywords : + LastModifiedBy : Bond, James (London) GBR + LastPrinted : 2017-01-21T12:36:11Z + Created : 17/01/2017 13:51:32 + Category : + Status : + ExtendedPropertiesXml : #document + Application : Microsoft Excel + HyperlinkBase : + AppVersion : 14.0300 + Company : Secret Service + Manager : + Modified : 10/02/2017 12:45:37 + CustomPropertiesXml : #document +``` #### 9/28/2016 [Fixed](https://github.com/dfinke/ImportExcel/pull/126) Powershell 3.0 compatibility. Thanks to [headsphere](https://github.com/headsphere). He used `$obj.PSObject.Methods[$target]` snytax to make it backward compatible. PS v4.0 and later allow `$obj.$target`.