13 WORKING WITH DIRECTORIES
Batch is an ideal tool for interrogating Windows directories. What files or types of files are in a directory? Are some directories filling up? Where’s a lost file? You can answer such questions and many more with some Batch code.
In this chapter, you’ll learn how to create directories, delete directories, and retrieve a plethora of information about existing directories. Before long, you’ll be able to quickly generate a report detailing the contents of a directory, including filenames, subdirectories, and all the contents of any subdirectories. The information can include the size, last modified date, and attributes ...
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.