Latest / CyberSecurity Summary / The Book of Batch Scripting: From Fundamentals to Advanced Automation
Transcript
- 0:00Speaker 1: I want you to I want you to picture a garage,
- 0:04Speaker 1: like a really high end modern.
- 0:05Speaker 2: Garage, Okay, I'm picturing it.
- 0:07Speaker 1: And on the left side, you've got the absolute cutting
- 0:11Speaker 1: edge of automotive engineering. Let's say a brand new, gleaming
- 0:16Speaker 1: Tesla or maybe Elucid Air.
- 0:17Speaker 2: Right, something really sleek, exactly.
- 0:19Speaker 1: It's got the self driving AI, the massive touch screens,
- 0:22Speaker 1: the over the air updates. It is the future.
- 0:25Speaker 2: It's sexy. It's what everyone wants to drive right now, right, and.
- 0:28Speaker 1: That represents modern coding languages, your Python, your rust go
- 0:32Speaker 1: things like that. Yeah, But then I want you to
- 0:34Speaker 1: look over to the right side of this garage. O.
- 0:37Speaker 1: Sitting on cinder blocks covered in maybe forty years of dust,
- 0:41Speaker 1: is a rusted out Model T Ford. It looks like
- 0:44Speaker 1: it belongs in a museum, sounds out a place. It does.
- 0:47Speaker 1: But here's the twist. You pop the hood of that
- 0:50Speaker 1: shiny k need Tesla and the engine inside it. It's
- 0:53Speaker 1: the Model T engine.
- 0:54Speaker 2: That is a terrifying image, honestly, but it's painfully accurate.
- 0:57Speaker 1: It really is. Yeah, Because we're ta talking go to
- 1:00Speaker 1: technology that feels ancient, almost prehistoric in computer years, yet
- 1:07Speaker 1: it is currently running the back end of your bank.
- 1:10Speaker 1: It's the logistics system delivering your packages.
- 1:12Speaker 2: And crucially, it is installed on every single Windows computer in.
- 1:16Speaker 1: Existence right now, Yes, every single one.
- 1:18Speaker 2: We are talking about batch scripting. I've heard it called
- 1:21Speaker 2: the cockroach of the IT world.
- 1:23Speaker 1: Cockroach feels a little harsh, but I kind of get it.
- 1:26Speaker 1: It just won't die.
- 1:28Speaker 2: It won't, and honestly it shouldn't. It's way too integrated
- 1:31Speaker 2: into the bedrock of our digital infrastructure.
- 1:34Speaker 1: So today we're doing a deep dive into a really
- 1:37Speaker 1: fascinating source. It's called the Book of Batch Scripting From
- 1:40Speaker 1: Fundamentals to Advance Automation by Jack McLarney. It's great read,
- 1:44Speaker 1: it is, and the mission for this deep dive is
- 1:46Speaker 1: pretty clear. We want to figure out why this nineteen
- 1:48Speaker 1: eighties technology, which is rooted in MS doos, is still
- 1:52Speaker 1: so vital.
- 1:52Speaker 2: But we also need to warn you. McLarney makes it
- 1:54Speaker 2: very clear in the book that batch is a minefield.
- 1:57Speaker 2: Oh absolutely, it's powerful, but it is just full of traps.
- 2:01Speaker 2: He actually coins a term for this, which I absolutely love.
- 2:04Speaker 2: He calls them bat beats. Bat beats, yeah, like caveats,
- 2:07Speaker 2: but specific to batch. A bat beat is basically a
- 2:10Speaker 2: quirk or a trap in the language that just doesn't
- 2:13Speaker 2: exist in modern coding.
- 2:14Speaker 1: Right because modern languages have safety rails exactly.
- 2:17Speaker 2: But in Batch, the interpreter is incredibly literal or sometimes
- 2:22Speaker 2: just plain weird in a way that can completely destroy
- 2:25Speaker 2: your entire workflow if you aren't careful.
- 2:28Speaker 1: And we have a list of the nastiest ones to
- 2:30Speaker 1: get through today, we're going to look at the space trap,
- 2:33Speaker 1: the Octal Horror Story, which is my absolute.
- 2:35Speaker 2: Favorite, by the way, oh it's a classic.
- 2:37Speaker 1: And the inception logic of nested variables. But let's start
- 2:40Speaker 1: with the basics what the book calls the wild West
- 2:43Speaker 1: of variables.
- 2:44Speaker 2: The wild West is definitely the right way to put it.
- 2:46Speaker 2: There is no sheriff in this town at all.
- 2:48Speaker 1: So in most languages, if I want to write code,
- 2:51Speaker 1: I have to be specific. I tell the computer, Hey,
- 2:54Speaker 1: this variable is a number, or this variable is a
- 2:57Speaker 1: string of text. There were rules.
- 2:59Speaker 2: Batch doesn't care about any of that, not at all.
- 3:01Speaker 2: In Batch, everything is created x nihilo out of nothing. Intrinsically,
- 3:07Speaker 2: to the Batch interpreter, everything is just a string of bytes.
- 3:10Speaker 2: It doesn't know the difference between the number five and
- 3:12Speaker 2: the word five.
- 3:12Speaker 1: Until you force it to do math, which leads to
- 3:14Speaker 1: what I think is the most infuriating yet kind of
- 3:17Speaker 1: hilarious rookie mistake in the book The Space Trap.
- 3:21Speaker 2: Oh Man, the Space Trap. This is a classic batv.
- 3:26Speaker 2: I have seen grown engineers, people with master's degrees, completely
- 3:31Speaker 2: pull their hair out over this.
- 3:33Speaker 1: So walk us through this. Let's say I want to
- 3:35Speaker 1: set a variable named x to the value hello.
- 3:38Speaker 2: Okay.
- 3:39Speaker 1: In a normal language, being a tidy person who likes
- 3:41Speaker 1: readable code, I might type set x, then a space,
- 3:44Speaker 1: an equal sign, another space, and then hello. I put
- 3:47Speaker 1: spaces around the equal sign because it looks nice.
- 3:49Speaker 2: It's clean, right, And in Python our JavaScript, that's fine.
- 3:52Speaker 2: The computer ignores the white space. That knows what you mean.
- 3:54Speaker 2: But the batch interpreter it is aggressively literal.
- 3:58Speaker 1: Aggressively literal.
- 3:59Speaker 2: Yes, if you type set x space equal space hello,
- 4:02Speaker 2: the interpreter doesn't say, oh they want x to equal hello,
- 4:05Speaker 2: does it do? It reads exactly what you typed. It
- 4:08Speaker 2: sees the space before the equal sign and includes it
- 4:11Speaker 2: in the name. So now you have a variable named
- 4:13Speaker 2: x space.
- 4:14Speaker 1: Wait xspace literally.
- 4:16Speaker 2: Literally, and then it sees the space after the equal
- 4:19Speaker 2: sign and includes that in the value. So the value
- 4:21Speaker 2: isn't Hello, it's space Hello.
- 4:23Speaker 1: So I haven't said X to hello at all. I've
- 4:25Speaker 1: set x space to space hello exactly.
- 4:27Speaker 2: And here is the kicker. If you try to use
- 4:30Speaker 2: that variable later by calling just x, which is what
- 4:33Speaker 2: you think you named it, it won't work because X
- 4:36Speaker 2: doesn't exist, only X space exists.
- 4:38Speaker 1: That is maddening. And since you can't see a space
- 4:41Speaker 1: character with the naked eye, you'd be steering at your
- 4:43Speaker 1: code for hours wondering why it's broken.
- 4:45Speaker 2: Precisely, you're looking at the screen shouting, I defined X.
- 4:48Speaker 2: It's right there. But you didn't define X. You defined
- 4:52Speaker 2: x space.
- 4:53Speaker 1: Wow.
- 4:53Speaker 2: That's why their author mcclerney practically begs you to stop
- 4:56Speaker 2: using basic notepad. You need an editor like Notepad plas
- 5:00Speaker 2: plus where you can turn on show space and tab.
- 5:02Speaker 2: You have to see the invisible characters or badge will
- 5:04Speaker 2: destroy you.
- 5:05Speaker 1: Okay, So once we've successfully set a variable, you know,
- 5:08Speaker 1: without the space as, we run into another issue, usefulness.
- 5:12Speaker 1: Usually when I set a variable and a command prompt,
- 5:15Speaker 1: it vanishes the second I close the window.
- 5:17Speaker 2: That's the ephemeral nature of the standard set command. It's
- 5:20Speaker 2: only a live for that specific session. It's like short
- 5:22Speaker 2: term memory. Yeah, but mcclarney highlights a tool that I
- 5:25Speaker 2: think is vastly underused, sex the extreme set Essentially, yes,
- 5:30Speaker 2: SETX allows you to save a variable into the system
- 5:33Speaker 2: environment permanently. It actually survives a reboot.
- 5:36Speaker 1: So why does that matter? Give me a real world
- 5:39Speaker 1: scenario where i'd use that.
- 5:40Speaker 2: Imagine you're a developer. You're building an app that needs
- 5:43Speaker 2: to know where a database is located. You don't want
- 5:45Speaker 2: to type that really long filepath every single time you
- 5:48Speaker 2: open a terminal to test your.
- 5:50Speaker 1: Code, right, That would be pedious.
- 5:52Speaker 2: So you can use set x to burn that location
- 5:54Speaker 2: into your machine's environment.
- 5:56Speaker 1: So it becomes part of the furniture exactly.
- 5:58Speaker 2: Every time you open your tools, the variable is just there.
- 6:01Speaker 2: You don't have to retype it. It's a huge time
- 6:03Speaker 2: saver for setting up development environments. But again, you have
- 6:07Speaker 2: to be careful because if you set ux a typo,
- 6:09Speaker 2: that typo is now permanent until you go in and
- 6:11Speaker 2: fix it.
- 6:12Speaker 1: High stakes, high reward. Okay, so we've got our variables,
- 6:16Speaker 1: we're avoiding spaces. Now we need to talk about the
- 6:18Speaker 1: segment that actually made me laugh out loud while reading
- 6:21Speaker 1: the octal horror story.
- 6:22Speaker 2: This is the ultimate batbate. It's a story that perfectly
- 6:26Speaker 2: illustrates how fragile batch logic can be.
- 6:28Speaker 1: So the setup is this. The author has a script
- 6:31Speaker 1: that's been running perfectly for six months. It's a date calculator.
- 6:34Speaker 1: Its job is to figure out the previous.
- 6:36Speaker 2: Day, right, simple logic. If today is the fifth, yesterday
- 6:39Speaker 2: was the fourth. If today's the first, we need to
- 6:41Speaker 2: go back to the previous month.
- 6:42Speaker 1: And this works beautifully in January, February, March, all the
- 6:46Speaker 1: way through July. But then August first rolls around the
- 6:50Speaker 1: day of doom. The script wakes up, tries to calculate
- 6:53Speaker 1: the previous month. It takes the current month, which is
- 6:55Speaker 1: August represented as zero eight, and tries to subtract one
- 6:59Speaker 1: to get July or zero seven. Simple math eight minus one.
- 7:03Speaker 2: Equal seven, But the script crashes.
- 7:05Speaker 1: It just implodes why why on Earth would eight minus
- 7:09Speaker 1: one crash a computer program?
- 7:11Speaker 2: It comes down to a legacy holdover from the dawn
- 7:13Speaker 2: of computing, specifically from the C programming language in Unix.
- 7:18Speaker 2: In Batch, a leading zero on a number is a signal.
- 7:21Speaker 2: It tells the interpreter we are not using the decimal system.
- 7:24Speaker 1: The base ten system that humans use.
- 7:27Speaker 2: Right, it says we are using octal base eight.
- 7:30Speaker 1: Okay, let's unpack octal. Most listeners probably haven't thought about
- 7:33Speaker 1: base eight since high school computer science.
- 7:35Speaker 2: If ever, so, in our normal base ten system, we
- 7:38Speaker 2: have digit zero through nine. When we get to ten,
- 7:40Speaker 2: we roll over. In octal, you only have digit zero
- 7:43Speaker 2: through seven. That's it. There is no eight, there is
- 7:45Speaker 2: no eight, and there's no nine. In octaal you count
- 7:47Speaker 2: zero one, two, three, four, five, six, seven, and the
- 7:50Speaker 2: next number is ten.
- 7:51Speaker 1: So when the script saw zero eight, it.
- 7:53Speaker 2: Saw the zero and switched to octal mode. Then it
- 7:55Speaker 2: saw the eight and panicked. It's like trying to divide
- 7:58Speaker 2: by zero. To the back interpreter, zero eight is an
- 8:01Speaker 2: impossible number. It's a hallucination. It just doesn't exist.
- 8:05Speaker 1: That is wild. So literally, because the date was August
- 8:09Speaker 1: first on the calendar, the server process died.
- 8:11Speaker 2: Yes, And the author describes his reaction when he finally
- 8:15Speaker 2: figured this out. He's looking at the logs, he sees
- 8:18Speaker 2: the zero eight and he realizes it's the octal bug.
- 8:20Speaker 2: He just screams oscy tale at the sky.
- 8:23Speaker 1: He compares it to Captain Kirk screaming con in star
- 8:26Speaker 1: Trek two.
- 8:26Speaker 2: I can picture it perfectly, just sheer nerd rage.
- 8:29Speaker 1: So how do you fix that? Do you just cancel August?
- 8:32Speaker 2: You have to scrub the data. You use substring tricks
- 8:34Speaker 2: to look at the date. You say, if the first
- 8:36Speaker 2: character is a zero, delete it. You have to turn
- 8:38Speaker 2: zero eight into just eight.
- 8:40Speaker 1: And once it's eight without the.
- 8:42Speaker 2: Zero, Batch treats it as a decimal and everything is fine.
- 8:45Speaker 1: It really reinforces the idea that Batch is just a
- 8:48Speaker 1: language of workarounds.
- 8:50Speaker 2: Absolutely, it's ductate all the way down. And that leads
- 8:53Speaker 2: perfectly into the next topic, faking functionality. Because if you're
- 8:57Speaker 2: coming from Python or Java, you expect certain things. You
- 9:00Speaker 2: expect to.
- 9:01Speaker 1: Have boollions, true or false variables.
- 9:03Speaker 2: Right, and you expect to have floating point numbers, decimals.
- 9:07Speaker 1: And Batch has neither none, zero.
- 9:11Speaker 2: So how do you check if something is true or false?
- 9:14Speaker 1: You have to diyat. The book shows this clever workaround.
- 9:19Speaker 1: Instead of setting a variable to the abstract concept of true,
- 9:22Speaker 1: you set the variable to the string true equals equals true.
- 9:26Speaker 2: Wait, you set the variable to an actual equation exactly.
- 9:29Speaker 1: So later when you use an if command, you're basically
- 9:31Speaker 1: pasting that equation into the command, the interpreter checks does
- 9:34Speaker 1: the string true equal the string truth? Yes, so the
- 9:37Speaker 1: condition passes. It's crude, but it works.
- 9:39Speaker 2: That feels like hot wiring a car to get it started.
- 9:42Speaker 1: That is Batch in a nutshell, right, And it gets
- 9:44Speaker 1: even messier with math. Say you want to calculate sales tax.
- 9:48Speaker 1: You need decimals. You need to multiply by one point
- 9:50Speaker 1: oh seven. Batch can't do decimals. It truncates everything to
- 9:54Speaker 1: a whole number.
- 9:54Speaker 2: So how do you do it? The book mentions a
- 9:56Speaker 2: spade shovel analogy. Right. Mcclarney says, doing floating point math
- 10:01Speaker 2: in Batch is like digging a foundation with a spade shovel.
- 10:04Speaker 2: You can do it, but do you really want to?
- 10:06Speaker 2: The trick is what he calls digital anarchy. Digital anarchy,
- 10:10Speaker 2: You take your number, say one point ninety nine, You
- 10:13Speaker 2: treat it as a string of text. You remove the dot.
- 10:15Speaker 2: Now you have one ninety nine.
- 10:16Speaker 1: Okay, so now it's an integer. Batch can handle that, right.
- 10:19Speaker 2: You do your math on one ninety nine. Let's say
- 10:21Speaker 2: you double it to three ninety eight. Then you have
- 10:24Speaker 2: to use substring logic to forcefully paste the decimal point
- 10:27Speaker 2: back in before the last two digits. So you manually
- 10:31Speaker 2: turn three ninety eight back into three point ninety eight.
- 10:33Speaker 1: You are manually managing the decimal point.
- 10:35Speaker 2: You are the floating point processor. You are doing the
- 10:38Speaker 2: job the CPU usually does for you.
- 10:40Speaker 1: That is dedication. But I guess if it's the only
- 10:42Speaker 1: tool installed on the server, you do what you have
- 10:44Speaker 1: to do.
- 10:45Speaker 2: And that brings us to the feature that sounds the
- 10:47Speaker 2: most intimidating but is actually the secret weapon of Batch
- 10:50Speaker 2: power users.
- 10:51Speaker 1: Delayed expansion set local enabled delete expansion. Sounds like a
- 10:54Speaker 1: cheat code.
- 10:55Speaker 2: It basically is. To understand why you need it, you
- 10:58Speaker 2: have to understand how Batch reads code. Normally, Batch reads
- 11:02Speaker 2: a full line of code or a block of code
- 11:05Speaker 2: inside parenthesis and parses it all at once.
- 11:08Speaker 1: Explain that parsing process a bit.
- 11:10Speaker 2: Think of it like ordering at a restaurant. In a
- 11:12Speaker 2: normal language, you order appetizers, you eat them, then you
- 11:15Speaker 2: order the main course. In Batch without delayed expansion, you
- 11:19Speaker 2: have to order everything appetizers, main dessert the moment you
- 11:22Speaker 2: sit down.
- 11:23Speaker 1: So if I change my mind halfway through the meal,
- 11:24Speaker 1: too bad.
- 11:25Speaker 2: The order is already in. In coding terms, if you
- 11:28Speaker 2: change a variable inside a loop and then try to
- 11:31Speaker 2: read it inside that same loop. The interpreter won't see
- 11:34Speaker 2: the change. It already decided what that variable was before
- 11:37Speaker 2: the loop started.
- 11:38Speaker 1: That seems like a massive design flaw.
- 11:40Speaker 2: It's just how it's built in the eighties. But enabled
- 11:42Speaker 2: delayed expansion fixes it. It allows you to use exclamation
- 11:45Speaker 2: marks instead of percent signs, like exclamation point variable exclamation point.
- 11:51Speaker 2: This forces the interpreter to.
- 11:52Speaker 1: Wait, wait for what.
- 11:54Speaker 2: It tells the interpreter, don't check this variable when you
- 11:57Speaker 2: take the order, check it when you actually serve the dish.
- 12:00Speaker 2: It forces the variable to be evaluated at the exact
- 12:03Speaker 2: moment of execution.
- 12:05Speaker 1: Hence delayed expansion precisely.
- 12:07Speaker 2: And this unlocks something really cool that the author compares
- 12:10Speaker 2: to the movie Inception nested.
- 12:12Speaker 1: Variables, variables inside variable.
- 12:14Speaker 2: Yes, with delayed expansion, you can do something like exclamation
- 12:19Speaker 2: food percent city percent exclamation.
- 12:21Speaker 1: Okay, let's unpack that. That looks like a typo salad.
- 12:24Speaker 2: It does, but look at the order of operations. The
- 12:26Speaker 2: interpreter looks at the percent city percent first. Let's say
- 12:30Speaker 2: the city variable is Nashville. It resolves that part immediately. Now,
- 12:34Speaker 2: the overall variable name becomes exclamation food Nashville exclamation ah.
- 12:39Speaker 1: I see. So it construct the name of the variable
- 12:41Speaker 1: it wants to find exactly.
- 12:42Speaker 2: Then it looks up the value of food Nashville, which
- 12:45Speaker 2: might be hot chicken.
- 12:46Speaker 1: So you can dynamically change which variable you are looking
- 12:50Speaker 1: at based on the value of another variable exactly.
- 12:53Speaker 2: It allows for dynamic coding like arrays and lookups that
- 12:56Speaker 2: is actually really hard to do in some compiled languages.
- 13:00Speaker 2: It turns this clunky old scripting language into something surprisingly flexible.
- 13:05Speaker 1: I love that. It's like finding a secret compartment in
- 13:07Speaker 1: that rusted out model.
- 13:08Speaker 2: T a secret compartment that holds a supercomputer.
- 13:12Speaker 1: So we've covered the logic and the variables. Now we
- 13:15Speaker 1: need to talk about the heavy lifting moving files, because
- 13:19Speaker 1: at the end of the day, that's what most people
- 13:21Speaker 1: use Batch for backups, organizing folders, moving data.
- 13:25Speaker 2: And there is a clear hierarchy here. It's like an
- 13:27Speaker 2: evolutionary chart. At the bottom you have the copy command,
- 13:30Speaker 2: the primitive tool. The expert advice here is simple, do
- 13:33Speaker 2: not use copy for actual files. It's too basic. It
- 13:36Speaker 2: stops at the first sign of trouble. Its only real
- 13:39Speaker 2: use nowadays is concatenation, merging, text files together or creating
- 13:42Speaker 2: empty files.
- 13:43Speaker 1: Using the null device, So we graduate to s copy.
- 13:46Speaker 2: SKP is the workhorse. It's been around forever. It's great
- 13:49Speaker 2: for single files, and the book highlights two crucial flags
- 13:53Speaker 2: or options you need to know, slash y and slash F.
- 13:56Speaker 1: Slash y suppresses the conformation pumped right. Are you sure
- 14:00Speaker 1: you want to overwrite prompt yes.
- 14:02Speaker 2: If you are automating a backup that runs at three
- 14:05Speaker 2: in the morning, you cannot have the script pause to
- 14:07Speaker 2: ask a question. No one is there to answer it.
- 14:10Speaker 2: The script will just hang there forever. Slash y just
- 14:12Speaker 2: says yes to everything, and slash F full paths. It
- 14:16Speaker 2: forces the LUG to show you exactly where the file
- 14:18Speaker 2: came from and exactly where it went. Without it, your
- 14:21Speaker 2: flying blind if something goes wrong.
- 14:22Speaker 1: But then we reach the final form the robust copy robocopy.
- 14:28Speaker 2: Robocopy is an absolute beast. It's designed for serious automation.
- 14:32Speaker 2: It can mirror entire drives, it can resume file transfers
- 14:34Speaker 2: if the network cuts out. It's incredibly resilient.
- 14:37Speaker 1: And the logging is intense.
- 14:38Speaker 2: Oh it's beautiful. Header's speed statistics separate counts for skip files.
- 14:43Speaker 2: Mismatched files. But there is a batfeat here too. The
- 14:46Speaker 2: return codes.
- 14:47Speaker 1: We talked about this before the show. In SAT copy
- 14:50Speaker 1: a zero means success. Everything is good right.
- 14:53Speaker 2: In almost all of computing, zero means no error. But
- 14:56Speaker 2: robocopy it uses powers.
- 14:58Speaker 1: Of two logicwers of two, So.
- 15:01Speaker 2: If robic copyer returns to zero, it actually means no errors.
- 15:05Speaker 2: But I didn't copy anything.
- 15:06Speaker 1: Wait, so zero is essentially I did nothing right.
- 15:09Speaker 2: It means the files matched the destination already, so it
- 15:12Speaker 2: just skipped them.
- 15:13Speaker 1: Okay.
- 15:14Speaker 2: If it returns a one, it means I copied one
- 15:16Speaker 2: or more files successfully.
- 15:18Speaker 1: Okay, that sounds like success.
- 15:19Speaker 2: But then you have two four, eight, sixteen, and they
- 15:23Speaker 2: can be combined. This is bitmasking. So if you get
- 15:25Speaker 2: a return code of three, that means one files copied
- 15:29Speaker 2: plus two extra files detected.
- 15:30Speaker 1: So you literally have to do modulo math just to
- 15:33Speaker 1: figure out if your backup work you do.
- 15:35Speaker 2: You can't just check if aer a level equals zero.
- 15:37Speaker 2: You have to check if the air level is less
- 15:39Speaker 2: than eight. Essentially, it's bizarre, but it gives you a
- 15:42Speaker 2: granular level of detail that other commands just don't.
- 15:46Speaker 1: It seems like that's the theme of this entire deep dive.
- 15:49Speaker 1: Bizarre but useful, it really is.
- 15:51Speaker 2: It forces you to think differently.
- 15:52Speaker 1: Which brings us to the philosophy of the book. Mcclerney
- 15:56Speaker 1: compares being a batch coder to being a Sumerian priest.
- 16:00Speaker 2: I love this analogy. He says, reading batch code, especially
- 16:03Speaker 2: when you get into the messy syntax of four loops
- 16:05Speaker 2: and delayed expansion, is like reading cuneiform. It looks esoteric,
- 16:10Speaker 2: it looks cryptic, but if you can read it, you
- 16:12Speaker 2: have immense power over the machine. You are one of
- 16:15Speaker 2: the few who can speak the language of the temple.
- 16:18Speaker 1: And he quotes Woody Guthrie in the epigraph. Any fool
- 16:22Speaker 1: can make something complicated, it takes a genius to make
- 16:26Speaker 1: it simple.
- 16:27Speaker 2: Batch force is simplicity. You don't have libraries, you don't
- 16:30Speaker 2: have fancy IDEs helping you out. You have raw text commands.
- 16:34Speaker 2: You are forced to strip the problem down to its
- 16:36Speaker 2: bare metal logic. And there is something deeply satisfying about that.
- 16:39Speaker 1: It's digital minimalism.
- 16:41Speaker 2: It is, and the barrier to entry is zero. That's
- 16:44Speaker 2: the most important takeaway.
- 16:45Speaker 1: You don't need to install Python, you don't need to
- 16:46Speaker 1: set up a compiler, right now you.
- 16:48Speaker 2: Can open notepad, you can type echo Hello world, you
- 16:51Speaker 2: can save it as dot bat, and when you double
- 16:54Speaker 2: click it, you have written a program. You are officially
- 16:56Speaker 2: a programmer.
- 16:57Speaker 1: It's the garage door opener to the world.
- 16:59Speaker 2: Of codev And honestly, if you can master the logic
- 17:02Speaker 2: of preventing an octal crash or figuring out robocopy bit masks,
- 17:07Speaker 2: you can learn any other language easily. Batch teaches you
- 17:10Speaker 2: to think like the computer.
- 17:11Speaker 1: So here is a final thought for you to chew on.
- 17:14Speaker 1: We talked about how a simple date August first, could
- 17:17Speaker 1: crash a server because of a tiny logic quirk, and
- 17:21Speaker 1: how a number is interpreted.
- 17:22Speaker 2: The octal bug.
- 17:24Speaker 1: It makes you wonder what other invisible logic is running
- 17:27Speaker 1: the world right now. How many banking systems or traffic
- 17:30Speaker 1: lights or power grids are running on a dot bat
- 17:33Speaker 1: file written in nineteen ninety five, just waiting for a
- 17:36Speaker 1: specific date or a specific file name to trigger a
- 17:39Speaker 1: hidden trap.
- 17:40Speaker 2: That is a terrifying thought. The digital infrastructure of the
- 17:43Speaker 2: world is held together by duct tape and set local
- 17:46Speaker 2: enabled delayed expansion.
- 17:47Speaker 1: And on that note, maybe go check your backups. Thanks
- 17:49Speaker 1: for diving in with
- 17:50Speaker 2: Us always a pleasure,