Helo -- I am reading a file into an array -- the file content is filenames -- as it turns out the names of the files in the list contains trigger characters that is causing tcc to try to process it -- one such character is & --
is there a way to quote the filename in the array so there the name is processed as-is --
Various ways. You can disable the command separator with SETDOS /X-5 (this will also disable some other features like pipes and redirection).
Or you can change the command separator to something that will never occur in a filename with e.g. SETDOS /C24. With this approach, you can use %+ to represent the command separator.
Either way, you want to do it in a SETLOCAL/ENDLOCAL block, so the temporary weirdness is reverted once you're finished.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.