Scripting Home
02.06.07
Loops Part II – For
by Jeremy | 8:27 pm
Ok, granted, Part I was pretty elementary for anyone that’s been doing batch for any length of time. I had to start somewhere and didn’t want to assume. Part II goes into ‘for’ loops. ‘For’ loops, in my opinion, are *the* most powerful tool in batch scripting. That said, they can be somewhat confusing as well.
Read the rest of this entry »
Posted in Batch, Windows 2000, Windows NT 4.0, Windows Vista, Windows XP
Permalink --
02.05.07
Number format conversions
by Jeremy | 8:01 pm
A neat trick of the ’set’ command is the ability to convert a couple different number formats into the normal decimal system that we are used to. Computers use different types of number formats for various reasons, but I’m always finding the need to convert them back to decimal so I can understand them.
Read the rest of this entry »
Posted in Batch, Windows 2000, Windows NT 4.0, Windows Vista, Windows XP
Permalink --
Loops Part I – :Labels
by Jeremy | 7:15 pm
Loops are one of the easiest and at the same time, one of the hardest things to do in batch, depending on what you want to do and how you want the loop to terminate.
This post will cover a simple looping method using labels and numerical variables.
Read the rest of this entry »
Posted in Batch, Windows 2000, Windows NT 4.0, Windows Vista, Windows XP
Permalink --
02.04.07
WOOT!
by Jeremy | 7:53 pm
@echo off
:loop
echo The Indianapolis Colts win SuperBowl XLI!!!
goto :loop
Posted in Batch, Off-Topic
Permalink --
Yahtzee!!!
by Jeremy | 3:18 pm
This is a first draft of a Yahtzee game written in batch. I wrote this over a period of 5 days, spending probably a total of 20 or so hours on it. The programming structure is horrible and insanely hard to follow. I plan on revamping it sometime soon with a more organized layout and lots of comments. Regardless of its shortcomings, it really is pretty neat.
Batch Yahtzee 1.0
Posted in Batch, Windows 2000, Windows XP
Permalink --
Intro
by Jeremy | 1:35 pm
Welcome to my scripting site.
I plan to use this space to share code snippets and methods of accomplishing normally difficult tasks using basic scripting in both batch and perl.
I’m currently just learning perl, but I’ve been working with batch for many years and have figured out a few things that I hope helps you with whatever task you’re trying to do.
Of course, if you notice any errors or see a better way to do anything, please leave a comment.
Thanks for visiting and come back often!
Posted in Site
Permalink --
|
Design by .