ClientApi::SetCwd( const char * )
Sets the working directory to be used for this connection.
Virtual? |
No |
|
Class |
||
Arguments |
|
the new directory path |
Returns |
|
Notes
SetCwd()
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.
Example
The following code sets different working directories and displays them
with p4 info
.
ClientApi client; ClientUser ui; client.SetCwd( "C:\one" ); client.Run( "info", &ui ); client.SetCwd( "C:\two" ); client.Run( "info", &ui );