This fast-paced, hands-on, quirky introduction to Windows’ Batch scripting language is ideal for coders of all skill levels.
In this era of advanced programming languages, the simplicity, universality, and efficiency of Batch scripting holds undeniable value.
Whether you’re maintaining legacy systems or seeking to understand the foundations of command line automation, The Book of Batch Scripting shows you how to become proficient with this tool included in every version of Windows.
As you work through the book, you will:
- Write a simple .bat file that performs a daily task with just a couple of mouse clicks
- Delve into variables and data types, and learn how a variable can possess two values at once—and why you should care
- Learn how to manage and collect data on files and directories either locally or on a network
- Harness the power of the for command to build complex loops with just a few lines of code
- Explore advanced topics like recursion, performing text searches, and even learn how to write a .bat file that writes a .bat file
- Extend Batch to use features like booleans, floats, operators, arrays, hash tables, stacks, queues, and even object-oriented design
Written for beginners and experts alike, The Book of Batch Scripting will have you streamlining your workflow and writing effective code in no time. This simple but powerful tool is about to make your life a little bit easier and more fun.
Requires: Microsoft Windows
Inhaltsverzeichnis
Introduction< BR> Part I: The Essentials< BR> Chapter 1: Batch< BR> Chapter 2: Variables and Values< BR> Chapter 3: Scope and Delayed Expansion< BR> Chapter 4: Conditional Execution< BR> Chapter 5: String and Boolean Data Types< BR> Chapter 6: Integer and Float Data Types< BR> Chapter 7: Working with Files< BR> Chapter 8: Executing Compiled Programs< BR> Chapter 9: Labels and Nonsequential Execution< BR> Chapter 10: Calling Routines and Bats< BR> Chapter 11: Parameters and Arguments< BR> Chapter 12: Outputs, Redirection, and Piping< BR> Chapter 13: Working with Directories< BR> Chapter 14: Escaping< BR> Chapter 15: Interactive Batch< BR> Chapter 16: Code Blocks< BR> Part II: The for Command< BR> Chapter 17: Fundamentals of the for Command< BR> Chapter 18: Directories, Recursion, and Iterative Loops< BR> Chapter 19: Reading Files and Other Inputs< BR> Chapter 20: Advanced for Techniques< BR> Part III: Advanced Topics< BR> Chapter 21: Pseudo-Environment Variables< BR> Chapter 22: Writing Reports< BR> Chapter 23: Recursion< BR> Chapter 24: Text String Searches< BR> Chapter 25: Bat Files Building Bat Files< BR> Chapter 26: Automatic Restarts and Multithreading< BR> Chapter 27: And/Or Operators< BR> Chapter 28: Compact Conditional Execution< BR> Chapter 29: Arrays and Hash Tables< BR> Chapter 30: Odds and Ends< BR> Chapter 31: Troubleshooting Tips and Testing Techniques< BR> Chapter 32: Object-Oriented Design< BR> Chapter 33: Stacks, Queues, and Real-World Objects< BR> Afterword< BR> Appendix A: Fully Functional Batch Improv< BR> Appendix B: Array and Hash Table Objects