• Just looking at the painful DOS syntax such as this fragment

    "%CRT_DIR%\%SCR_NAME%%SCR_EXT%"

    makes me wince. I would suggest using PowerShell and perhaps a CSV file to feed "environment" variables to the script.

    Powershell is a command line shell and scripting language and runs on XP, Vista and Server 2003.

    It allows you to use the good old DOS commands (if you really want to), WMI, Active Directory, COM objects, the full .NET functionality and more - all on the same command line.

    Like UNIX it uses the concept of a pipeline, but it is a pipeline of objects (not text), which avoids the need to parse the data between commands.

    I'm still learning but I think it is well worth the investment. Check it out here: