zlacker

[parent] [thread] 1 comments
1. adzm+(OP)[view] [source] 2026-01-07 18:15:10
Powershell is pretty great, though I am constantly bit by issues with filenames having [ or ] in them and end up having to pass -LiteralPath to everything, which is frustrating and a constant source of bugs in any other scripts that do not do that.
replies(1): >>Natfan+N5a
2. Natfan+N5a[view] [source] 2026-01-10 19:19:21
>>adzm+(OP)
can you not just quote the filepaths? either as a 'literal string' or as one with "string $interpolation" (provided you have no dollars in your file names)
[go to top]