From Fundamentals to Advanced
Jack McLarney

#Batch_Scripting
#Batch
#Data
#network
کتابی سریع، عملی و با لحنی شوخ و سرگرمکننده برای ورود به دنیای Batch Scripting در ویندوز — مناسب برای برنامهنویسان در هر سطح مهارتی.
در دورانی که زبانهای برنامهنویسی پیشرفته در اوجاند، سادگی، فراگیری و کارایی Batch scripting هنوز هم ارزشمند و کاربردی است.
کتاب The Book of Batch Scripting به شما میآموزد چگونه از این ابزار قدرتمند، که در تمام نسخههای ویندوز وجود دارد، برای خودکارسازی وظایف استفاده کنید — چه در حال نگهداری سیستمهای قدیمی باشید و چه بهدنبال شناخت عمیقتر از خط فرمان.
در طول مطالعه این کتاب، یاد میگیرید که:
.bat ساده بسازید که یک کار روزانه را تنها با چند کلیک انجام دهد.bat دیگر میسازداین کتاب برای مبتدیها و حرفهایها نوشته شده و به شما کمک میکند تا در کمترین زمان، جریان کاری خود را بهینه کرده و اسکریپتهایی مؤثر بنویسید.
ابزاری ساده، قدرتمند و جهانی که هم زندگی شما را آسانتر میکند و هم لذتبخشتر.
نیازمند سیستمعامل Windows
نظرات خوانندگان:
«اگه با ویندوز کار میکنی، باید این کتاب رو بخونی.»
— Niel Infante، مهندس ارشد، Ginkgo Bioworks
«فکر میکردم همه چیز درباره bat fileها رو میدونم، ولی توی ۳۰ دقیقه اول این کتاب، چیزایی یاد گرفتم که اصلاً نمیدونستم Batch بلده!»
— Dave Mullen، مدیر ارشد IT و مهندس امنیت سایبری
«کتابی سرگرمکننده و فنی؛ برای تازهکارها بیدردسر و برای حرفهایها مرجعی بینظیر. ترکیب هوشمندانه آموزش مرحلهبهمرحله، مثالهای کاربردی و پرداختن به موضوعات پیشرفته، این کتاب رو به منبعی کامل تبدیل کرده.»
— دکتر نیکول انگلکه، استاد دانشگاه نبراسکا
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:
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
Review
"If you have to work with Windows, you have to read this book."
—Niel Infante, Senior Engineer, Ginkgo Bioworks
"Having worked professionally in IT since prior to the internet having pictures, I thought I knew bat files. Within the first 30 minutes, I learned things that Batch could do that I never had a clue about. It was a dazzling, factual read mixed with full syntax detail and humor along the way. Highly recommended for anyone as a fun trip down memory lane or an excellent reference in those times of need!"
—Dave Mullen, Senior IT Manager, Windows Administrator, and Cybersecurity Engineer
"Playfully written and technically robust, Jack’s book is fantastic. It is a painless introduction to bat files for beginners and an invaluable reference for experts. Careful scaffolding in the early chapters eases learner anxiety and cognitive overload while providing an immediate payout of practical applications and a robust basis to move forward. Later chapters provide structure for advanced topics, templates to build on, and a thorough examination of bat files, providing amazing functionality and flexibility I did not know was possible."
—Dr. Nicole Engelke, Professor and Director of Quantitative Reasoning, University of Nebraska at Omaha
Table of Contents
Part I: The Essentials
1. Batch
2. Variables and Values
3. Scope and Delayed Expansion
4. Conditional Execution
5. String and Boolean Data Types
6. Integer and Float Data Types
7. Working with Files
8. Executing Compiled Programs
9. Labels and Nonsequential Execution
10. Calling Routines and Bat Files
11. Parameters and Arguments
12. Outputs, Redirection, and Piping
13. Working with Directories
14. Escaping
15. Interactive Batch
16. Code Blocks
Part II: The for Command
17. Fundamentals of the for Command
18. Directories, Recursion, and Iterative Loops
19. Reading Files and other Inputs
20. Advanced for Techniques
Part III: Advanced Topics
21. Pseudo-Environment Variables
22. Writing Reports
23. Recursion
24. Text String Searches
25. Bat Files Building Bat Files
26. Automatic Restarts and Multithreading
27. AND/OR Operators
28. Compact Conditional Execution
29. Arrays and Hash Tables
30. Odds and Ends
31. Troubleshooting Tips and Testing Techniques
32. Object-Oriented Design
33. Stacks, Queues, and Real-World Objects
About the Author
Jack McLarney has been coding professionally since 1999 at companies like Protective Life Corporation, Fiserv, and The Hartford Financial Services Group. McLarney teaches part-time at Manchester Community College as an Adjunct Professor of Mathematics and holds an MS in Applied Mathematics from the University of Connecticut.









