Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

C/C++ API Documentation | 2025.2

# ClientApi::SetCwdNoReload( const char * )

Sets the working directory to be used for this connection without checking `P4CONFIG`.

Virtual? | No |
Class | `ClientApi` |
Arguments | `const char *c` | the new directory path
Returns | `void` |

## 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;

    client.SetCwdNoReload( "C:\one" );
    client.Run( "info", &ui );

    client.SetCwdNoReload( "C:\two" );
    client.Run( "info", &ui );

Your search for returned results