Run-in-Sandbox icon indicating copy to clipboard operation
Run-in-Sandbox copied to clipboard

File/Directory paths with brackets ('[', ']') do not work

Open lahma0 opened this issue 2 years ago • 1 comments

Any file/directory paths that contain brackets (ex: "c:\temp[0]") do not work with right context menu items. For example, say I have the following path: C:\temp[0]

If I right click that directory and click the item "Share this folder in a Sandbox", it will not work. I suspect this can be easily fixed by properly escaping the path in powershell. The following will likely work: [WildcardPattern]::Escape($literalPath)

lahma0 avatar Jul 01 '23 18:07 lahma0

Hm, interesting. I have never used or seen a path with square brackets (atleast not that i remember ever seen a path with square brackets). I'll look into it. Should be as simple as putting the path in ' '

Joly0 avatar Jul 01 '23 21:07 Joly0