ClientApi::SetCwdNoReload( const StrPtr * )
Sets the working directory to be used for this connection without
checking P4CONFIG.
|
Virtual? |
No |
|
|
Class |
||
|
Arguments |
|
the new directory path |
|
Returns |
|
Notes
SetCwdNoReload()
does not permanently set a new working directory in the client
environment. The new setting applies only to commands executed by calling
this ClientApi object’s Run() method.
Unlike SetCwd(), SetCwdNoReload()
ignores any P4CONFIG files found in the new directory
hierarchy.
Example
The following code sets different working directories and displays them
with p4 info.
ClientApi client; ClientUser ui; StrBuf sb1; StrBuf sb2; sb1 = "C:\one"; sb2 = "C:\two"; client.SetCwdNoReload( &sb1 ); client.Run( "info", &ui ); client.SetCwdNoReload( &sb2 ); client.Run( "info", &ui );