Perforce Command Reference:   [Index] [Prev] [Next]


p4 set

Synopsis

Set Perforce variables in the Windows registry

Syntax

p4 [g-opts] set [ -s ] [ var=[value] ]

Description

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.

Options

-s Set the value of the registry variables systemwide. You must have administrator privileges to do this.
g_opts See global options section.

Usage Notes

Can File Arg Use
Revision Specifier?
Can File Arg
Use Revision Range?
Minimal
Access Level Required
<NA> <NA> list

Examples

p4 set P4PORT=tea:1666 Set a registry variable telling the Perforce client to connect to a Perforce server at host tea, port 1666.
p4 set Display a list of Perforce registry variables. Don't set anything.



Perforce Command Reference:   [Index] [Prev] [Next]


Copyright 1999 Perforce Software.
Contact us at [email protected]
Last updated: 09/15/99 (Manual version 99.1.cr.6)