Skip to content

P4V Custom Tools

You can add custom tools to extend the P4V interface. It’s available under the Tools menu:

Custom Tool

Creating a Basic Tool

The most basic thing we can do is call CMD. Create a new tool in the dropdown:

Creating Tool

Add a call to C:\Windows\System32\cmd.exe using the /C param. Here we simply echo “foobar”.

Edit Tool

Once added, it becomes available under the Tools menu:

Menu Tool

And the boring result:

Boring Result

Calling P4 Commands

A slightly more useful tool would be to show the download size of a depot:

Calling P4 Commands

You can then right-click a depot to execute the tool:

Execute Tool

Which currently outputs:

Output

Here is a list of additional argument tokens you can pass:

Importing/Exporting Tools

We can export tools as XML to share with others.