20 ADVANCED FOR TECHNIQUES
The previous three chapters have shown the power of the for command, but they’ve also demonstrated how tricky it can be to use and even exposed some limitations. In this chapter, I’ll explore some advanced topics, including techniques for working around some of those limitations.
In this chapter, I’ll explain how to perform the following tasks:
- Make the interpreter honor null values between consecutive delimiter characters in the data interrogated by the for /F command
- Force a string to uppercase (or lowercase) with traditional Batch or by embedding either a PowerShell or Python command into the Batch code, a ...
Get The Book of Batch Scripting now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.