Use of Environment Variables

rgillam2

New Member
Hello! I am curious to know if an Environment Variable can be created and then used within other Environment Variables.

As an example, I'd like to create an EV for a server directory. Let's call it [Server Path].

Then I want to take [Server Path] and include it inside other EVs, such as [Server Path]\Process1\Archive; or [Server Path]\Process1\Processed Files. Then, if the server changes, we'd only have to change the [Server Path] EV, and not all the other EVs that would be set up to use the [Server Path].

Is this possible, and if so, what is the syntax that I need to put into BP for it in the System tab?

Thanks.
 

gil.silva

Active Member
Hello rgillam2,

Yes, you can use a calculation stage Replace within the process where the 'Server Path' will be replaced by other data item or Env. variable.
That can be very useful to set 'global paths' for instance:

\{user name}\Desktop
\{user name}\Documents

Then, with a replace function, we can replace {user name} by the current username in the system.
 
Top