Jump to content

Elliott Lock

Member Since 09 Feb 2011
Offline Last Active Apr 01 2020 12:50 PM

Topics I've Started

Creating clients through batch files

01 August 2019 - 11:52 AM


I have a large number of machines 30+ which all require workspaces. Seems simple enough, just run p4 client right?

Well what I also need to do is define each clients specfification to be custom to the machine its on. This includes information specficiation like:
- Client (name)
- Root
- Options
- Stream

In short, things which are stored in the specficiation file (I believe). I waant to do all of this without having to interact with each machine, excluding the action of just running the batch file. The execution should effectively be silent.

Assuming I have the above values (I'd be calling OS commands like %computername% to get them). How would I pass in the information so the workspaces are correctly setup?

Many Thanks,