First an apology if one is needed. In the back of my mind I have a dim memory that this "problem" has already been discussed and fixed and/or worked around, but if that is the case I haven't been able to "dig it up" as of this moment. And the problem is really quite simple: %@SafeEcho is "eating" leading whitespace (at least blanks) on the string that it is echoing. Specifically to demonstrate, a batch file containing just this:
produces:
all of the leading blanks being "eaten" by the SafeEcho command.
Well, I really do want those leading blanks, and I'd rather not have the leading pound sign in the output, but, frankly, that's a better option in terms of my goals in writing this batch file than is the leading blanks just "disappearing" altogether. So is there some already-known way to do what I am trying to do?
Code:
@SafeEcho This is a test
@SafeEcho # This is a test
Code:
This is a test
# This is a test
Well, I really do want those leading blanks, and I'd rather not have the leading pound sign in the output, but, frankly, that's a better option in terms of my goals in writing this batch file than is the leading blanks just "disappearing" altogether. So is there some already-known way to do what I am trying to do?