Set Perforce variables in the Windows registry
The Perforce client requires that certain variables be set at the system level. On other operating systems, this is accomplished by setting environment variables; on Windows, the values of these variables are stored in the registry. Although the user can set the registry variables herself with straightforward (or semi-straightforward) Windows commands, p4 set will do the same thing, and it's much easier to use.
To set the value of a registry variable, use p4 set var=value. NT administrators can use the command p4 set -s var=value to set the values systemwide.
To view a list of the values of all Perforce variables, use p4 set without any arguments.
p4 set can be used on non-Windows OS's to view the values of variables, but if you try to use p4 set to set non-Windows OS variables, Perforce will respond by complaining gently.
-s | Set the value of the registry variables systemwide. You must have administrator privileges to do this. |
g_opts | See global options section. |
Can File Arg Use Revision Specifier? |
Can File Arg Use Revision Range? |
Minimal Access Level Required |
---|---|---|
<NA> | <NA> | list |