Perforce 2000.2 Command Reference (2000.2.cr.1)
<< Previous Chapter
p4 reviews
Table of Contents
Index
Perforce on the Web
Next Chapter >>
p4 submit

p4 set


Synopsis

Set Perforce variables in the Windows registry

Syntax

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

Description

The Perforce client and server require the use of certain system variables. On Windows, you can set the values of these variables in the registry with p4 set; on other operating systems, Perforce uses environment variables for the same purpose.

To set the value of a registry variable for the current user, use p4 set var=value. NT administrators can use p4 set -s var=value to set the registry variable's default values for all users on the local machine.

NT administrators running the Perforce server as a service can set variables used by the service (e.g. P4JOURNAL and others) with p4 set -S svcname var=value.

To unset the value for a particular variable, leave value empty.

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 operating systems to view the values of variables, but if you try to use p4 set to set variables on non-Windows operating systems, Perforce will gently but firmly refuse.

Options

-s

Set the value of the registry variables for the local machine. Without this flag, p4 set sets the variables in the HKEY_CURRENT_USER hive; when you use the -s flag, the variables are set in the HKEY_LOCAL_MACHINE hive.

-S svcname

Set the value of the registry variables as used by service svcname. You must have administrator privileges to do this.

g_opts

See the Global Options section.

Usage Notes

Can File Arguments Use
Revision Specifier?

Can File Arguments Use
Revision Range?

Minimal Access Level Required

N/A

N/A

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 P4MERGE=

Unset the value of P4MERGE.

p4 set

Display a list of Perforce registry variables. Don't set anything.


Perforce 2000.2 Command Reference (2000.2.cr.1)
<< Previous Chapter
p4 reviews
Table of Contents
Index
Perforce on the Web
Next Chapter >>
p4 submit
Please send comments and questions about this manual to [email protected].
Copyright 1997, 2000 Perforce Software. All rights reserved.
Last updated: 12/21/00