Take the 2-minute tour ×

I was trying to create a scripted installer for P4V. The port settings, user setting and the workspace name are set as specified in the config file. But when I open perforce the connection dialog box throws an error "client 'manojpc' unknown". The following was my configuration file:

set P4PORT=server:2345
set INSTMODE=NoPrompt
set INSTTYPE=ClientOnly
set P4ROOT=$(SystemDrive)\My Depot
set CLNTEXES=$(SystemDrive)\Perforce
set P4USER=username

If I specify an already existing workspace, perforce won't allow me to use it in a PC other than the one from which it was created. So how do I make this work? Please let me also know if the above settings will set the "C:\My Depot" as the workspace dir.

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

In your Workspace settings, make the Host: field blank. This will allow you to use the same workspace from any computer.

share|improve this answer
Keep in mind, anytime I've used a workspace across multiple computers, I've always done it on a network folder (NFS specifically). I've never done such a workspace in which the root directory was local to the computer, so I'm not sure how this would work. –  Chance Jul 22 '10 at 15:16
add comment

Do you possibly need to use the p4 client command to set up a workspace before-hand? http://www.perforce.com/perforce/doc.061/manuals/cmdref/client.html#1040665

share|improve this answer
When I try to use the p4 client command, "Can't create a new user - over licence quota" error is thrown. But I am trying to create a workspace right? –  Manoj Jul 20 '10 at 9:58
I was using P4V and thats the reason those commands were not working. using P4Win solves the problem. But why does not P4V recogonise those commands? –  Manoj Jul 20 '10 at 11:55
add comment

Your Answer


