Scripting Home

06.26.07

Random Numbers

by Jeremy | 10:54 pm


Random numbers can be generated in several ways.  Depending on what you’re using them for, each way has its benefits.  This post will talk about the %RANDOM% variable and using the system clock to generate psuedo-random numbers on the command line.
Read the rest of this entry »

Posted in Batch, Windows 2000, Windows NT 4.0, Windows Vista, Windows XP
-- 1 Comment

Loops Part V – For /L

by Jeremy | 9:52 pm


For /L is used for counting. Need to execute a command X number of times, or have a variable number of cases that each need to be dealt with separately? For /L is your pony.
Read the rest of this entry »

Posted in Batch, Windows 2000, Windows NT 4.0, Windows Vista, Windows XP
-- Comments

06.01.07

Loops Part IV – For /R

by Jeremy | 11:35 pm


This post is fairly short because to tell you the truth, I’ve never used for /r. The functionality offered by this switch can be duplicated with /f if done correctly. That said, why don’t you jump in and explore it with me. As I write this post, I’m thinking about all the things I could have used this for rather than the more complex commands that I ended up using.
Read the rest of this entry »

Posted in Batch, Windows 2000, Windows NT 4.0, Windows Vista, Windows XP
-- Comments

|
Design by .