in reply to Re^2: VSS automation strange problem
in thread VSS automation strange problem

At least according to the internet, setting the environment variable doesn't always work.

Have you compared the environment variables that are set when you manually run the command from the command prompt and what %ENV contains?