Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lahma0 opened this issue Jul 1, 2023 · 1 comment
Open

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

lahma0 opened this issue Jul 1, 2023 · 1 comment

Comments

@lahma0
Copy link

lahma0 commented Jul 1, 2023

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)

@Joly0
Copy link
Contributor

Joly0 commented Jul 1, 2023

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 added a commit to Joly0/Run-in-Sandbox that referenced this issue Jul 14, 2023
- Finally fixed running intunewin with serviceUI and psexec
- Fixed damienvanrobaeys#40
### Changed
- Changed formatting to OTBS using "Invoke-Formatter" cmdlet in "Script-Analyzer" module (On-going discussion damienvanrobaeys#44) and applied some powershell best-pratices
Joly0 added a commit to Joly0/Run-in-Sandbox that referenced this issue Jul 14, 2023
- Finally fixed running intunewin with serviceUI and psexec
- Fixed damienvanrobaeys#40
### Changed
- Changed formatting to OTBS using "Invoke-Formatter" cmdlet in "Script-Analyzer" module (On-going discussion damienvanrobaeys#44) and applied some powershell best-pratices
Joly0 added a commit to Joly0/Run-in-Sandbox that referenced this issue Jul 14, 2023
- Finally fixed running intunewin with serviceUI and psexec
- Fixed damienvanrobaeys#40
- Fixed damienvanrobaeys#41
### Changed
- Changed formatting to OTBS using "Invoke-Formatter" cmdlet in "Script-Analyzer" module (On-going discussion damienvanrobaeys#44) and applied some powershell best-pratices
Joly0 added a commit to Joly0/Run-in-Sandbox that referenced this issue Aug 26, 2024
- Finally fixed running intunewin with serviceUI and psexec
- Fixed damienvanrobaeys#40
- Fixed damienvanrobaeys#41
### Changed
- Changed formatting to OTBS using "Invoke-Formatter" cmdlet in "Script-Analyzer" module (On-going discussion damienvanrobaeys#44) and applied some powershell best-pratices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants