- May
- 80
- 0
Let's say for example that I have this command:
This works properly, as it should
Now I want to use the same command, only under a select command:
Unfortunately, I get the error:
Ok, so I'll try escaping the closing parenthesis:
No luck:
Maybe escaping both?
Nope.
Is there a way to do what I need?
(BTW, I'm not really trying to echo the contents of "C:\Program Files (x86)" - I'm trying to copy some files from a directory with parentheses in its name)
Code:
for /a:d %i in ("C:\Program Files (x86)\*") do echo %i
This works properly, as it should
Now I want to use the same command, only under a select command:
Code:
select ("C:\Program Files (x86)\*") do echo %i
Code:
TCC: (Sys) The system cannot find the file specified.
"C:\Program Files (x86"
Ok, so I'll try escaping the closing parenthesis:
Code:
C:\Users\GSchizas>select ("C:\Program Files (x86^)\*") do echo %i
No luck:
Code:
TCC: (Sys) The system cannot find the file specified.
"C:\Program Files (x86^)\*"
Maybe escaping both?
Code:
C:\Users\GSchizas>select ("C:\Program Files ^(x86^)\*") do echo %i
Nope.
Code:
TCC: (Sys) The system cannot find the file specified.
"C:\Program Files ^(x86^)\*"
Is there a way to do what I need?
(BTW, I'm not really trying to echo the contents of "C:\Program Files (x86)" - I'm trying to copy some files from a directory with parentheses in its name)