Windows environment variables |
Top Previous Next |
Windows environment variables can be used in two ways. One way is to pass the environment variable as an argument into Robo-FTP from a shortcut or the Windows Command Prompt command line. Consider the following example where the environment variable %SystemDrive% is passed in as an argument.
C:\Program Files\Robo-FTP X.X\Robo-FTP.exe –p1 %SystemDrive%
The SET command may also be used to copy the value of an environment variable into a Robo-FTP script variable. Consider the following example where the operating system environment variable %SystemDrive% is set to the Robo-FTP script variable named sysdrive:
SET sysdrive = %SystemDrive%
Here is a list of common Windows environment variables:
Environment variables may contain different values for each Windows user account. Use system-wide environment variables machines where Robo-FTP may be launched by a built-in account like Network Service or Local System. Even if Robo-FTP will only ever be launched by regular user accounts it is probably best to use system-wide environment variables unless you specifically need the ability for users to have unique values.
Related command(s): SET See also: -p Command Line Switch, Using the %installdir variable, Adding Robo-FTP to the Path
|