RamblingCookieMonster / PSExcel

A simple Excel PowerShell module

Home Page:http://ramblingcookiemonster.github.io/PSExcel-Intro/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add LiteralPath parameter

JohnLBevan opened this issue · comments

Currently we get errors when interacting with files with certain characters, such as square brackets, in their filename; e.g. $myFile = 'c:\temp\myfile[1].xlsx'.

We can work around this by escaping those characters; e.g. $myFile = [Management.Automation.WildcardPattern]::Escape($myFile).

However, it would be helpful if Import-XSLX provided a LiteralPath parameter, as other standard PS cmdlets do, to accept the un-escaped path and treat it as a literal.