- Oct
- 369
- 2
I was in the process of building batch files to copy files off old cd/dvd. I came across of file that as part of its name it contained “%20" in it — I have seen this were the %20 is a place holder for a space.
It was not clear to me how to “quote” this files name so the (tcc) copy command would not try to evaluate the %20. I tried changing the %20 to %%20 and ^%20 but both failed. Even tried the back-quote, but the file as passed to a subroutine via a “gosub” and I think that when the text got to the subroutine, the “%20" were now exposed again ----
Any pointers on how to do this would be appreciated – Thanks
It was not clear to me how to “quote” this files name so the (tcc) copy command would not try to evaluate the %20. I tried changing the %20 to %%20 and ^%20 but both failed. Even tried the back-quote, but the file as passed to a subroutine via a “gosub” and I think that when the text got to the subroutine, the “%20" were now exposed again ----
Any pointers on how to do this would be appreciated – Thanks