1. If perforce's visualized client is used,
Connection, user, name, and password can all be set on the page.
If you want to use command operations or automateCodeThen, you need to configure the corresponding environment variables.
Add the following configurations to the system environment variables:
P4port = IP: Port (Port default as 1666)
P4user =
P4client =
You can use P4 info to view the current information.
Then run the command P4 login to log on and check whether the operation is successful. If you cannot log on because of character sets, configure
P4charset =
P4commandcharset =
Set the character set that matches with the P4 Service
Character Set settings include:
None, utf8, utf8-bom, iso8859-1, shiftjis, eucjp, iso8859-15,
Iso8859-5, macosroman, winansi, koi8_r, cp1251,
UTF16, utf16-nobom, utf16le, utf16le-bom, utf16be,
Utf16be-bom, UTF32, utf32-nobom, utf32le, utf32le-bom, utf32be,
Or utf32be-bom