How to mask a blank inside nested quotes?
Posted: 28 May 2018 07:24
Assume I have the folowing simplified code:
At first mind the blank inside the path.
When I run this batch script I got the folowing error:
'D:\tools\graphic' is not recognized as an internal or external command,
operable program or batch file.
The filename, directory name, or volume label syntax is incorrect.
Missing operator.
I though I could always enclose a string inside another string with an opposite quotes
Either
' "......" ....'
or
" ' .....' ...."
This seems not to be the case.
How else does that work?
Code: Select all
set PROG=D:\tools\graphic tools\v7\
for /R . %%F in (.jpg) do (
for /F usebackq %%L in (`"%PROG%myprog.exe" ...... %%F`) do set %%L
....
)
When I run this batch script I got the folowing error:
'D:\tools\graphic' is not recognized as an internal or external command,
operable program or batch file.
The filename, directory name, or volume label syntax is incorrect.
Missing operator.
I though I could always enclose a string inside another string with an opposite quotes
Either
' "......" ....'
or
" ' .....' ...."
This seems not to be the case.
How else does that work?