The Book of Batch Scripting: From Fundamentals to Advanced Automation
暫譯: 批次腳本全書:從基礎到進階自動化

McLarney, Jack

  • 出版商: No Starch Press
  • 出版日期: 2024-06-25
  • 定價: $2,100
  • 售價: 8.8$1,848 (限時優惠至 2025-03-31)
  • 語言: 英文
  • 頁數: 488
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1718503423
  • ISBN-13: 9781718503427
  • 立即出貨

買這商品的人也買了...

商品描述

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

商品描述(中文翻譯)

這本快速、實用且獨特的 Windows 批次腳本語言入門書籍,適合各種技能水平的程式設計師。

在這個高級程式語言的時代,批次腳本的簡單性、通用性和效率無可否認地具有價值。

無論您是在維護舊系統,還是希望了解命令列自動化的基礎,《批次腳本之書》將教您如何熟練使用這個包含在每個版本 Windows 中的工具。

在閱讀本書的過程中,您將會:

- 撰寫一個簡單的 .bat 檔案,只需幾次滑鼠點擊即可執行每日任務
- 深入了解變數和資料類型,學習變數如何同時擁有兩個值,以及為什麼這很重要
- 學習如何管理和收集本地或網路上的檔案和目錄資料
- 利用 for 命令的強大功能,僅用幾行程式碼建立複雜的迴圈
- 探索進階主題,如遞迴、執行文字搜尋,甚至學習如何撰寫一個能夠生成 .bat 檔案的 .bat 檔案
- 擴展批次腳本以使用布林值、浮點數、運算子、陣列、雜湊表、堆疊、佇列,甚至物件導向設計等功能

《批次腳本之書》為初學者和專家而寫,將幫助您簡化工作流程,迅速撰寫有效的程式碼。這個簡單但強大的工具即將讓您的生活變得更加輕鬆和有趣。

需求: Microsoft Windows

作者簡介

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.

作者簡介(中文翻譯)

傑克·麥克拉尼自1999年以來在保險生命公司(Protective Life Corporation)、Fiserv和哈特福金融服務集團(The Hartford Financial Services Group)等公司專業編程。麥克拉尼在曼徹斯特社區學院(Manchester Community College)擔任數學的兼任教授,並持有康乃狄克大學(University of Connecticut)的應用數學碩士學位。