7 WORKING WITH FILES
If you were to ask a coder only tangentially acquainted with Batch for its primary use, their response would likely mention moving files around. Batch can do much more, but without a doubt one of its primary uses is file movements. In this chapter, we’ll explore the different commands and techniques available. You’ll also learn about creating empty files, along with methods for merging, moving, renaming, and deleting files. I’ll introduce file masks and wildcards, allowing you to execute the commands you’re about to learn on many similarly named files instead of just one.
Commands for Copying Files
Batch has three commands ...
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.