When working with build events – e.g., for PreBuild scripts – it is possible to use certain variables. This is documented in the help section (under the “Tab Build Events”): Properties of objects in the Configuration View
I noticed that under the “I/O” tab, additional variables like $(AS_CPU_PATH) and $(AS_PLC) are mentioned. These variables also work if used in a PostBuild script – but not in a PreBuild script.
I don’t have a different list of all the environment variables compared to the “Usable variables” information in the BuildEvents tab. But as I was curious about the result, I configured a prebuild and postbuilt step using the command “set” and redirected the output of “set” into a file.
Doing so, you should see all environment variables that are existing at this point of time (of course not online the Automation Studio env vars, but all).
In my test, there were some more variables as in the above mentioned list that are created by Automation Software (at least from my point of interpretation), but nothing “spectacular”.
And I haven’t seen a AS_CPU_PATH or AS_PLC variable, so it looks like that they aren’t exposed to the process environment, and aren’t available for pre- and post-build scripts.
Maybe someone else knows more about, nevertheless I hope this information helps a bit,
best regards.