Can any of you guys get this "scripting guys" script to work?

I think that this script is intended to set an environment variable within the environment where the script is running. I'm trying to use this to allow a scheduled batch job to do date manipulation to compute a file name based on the current date (the file is created by a separate batch job). By setting an environment variable to yesterday expressed as YYYYMMDD, I can combine the environment variable with the base file name to get the name of yesterday's file.

I think that the problem lies in the XP Pro image that we're using, so this script might work "as is" on a machine that was installed "stock" instead of "custom".

-PatP