Bandyman
Bandyman

Reputation: 43

Custom Timer & Changelists submission on Perforce

I am trying to come up with a way (if its even possible) to make a custom tool for Perforce that will take 3 sets of different but specific changelists and submit them at a custom time and day of the week. Like 15:00:00 on a Sunday. I have been looking around on the perforce site and here or even an already created tool I could take a look at but I cannot seem to find anything. Any ideas would be great! Thanks.

Upvotes: 1

Views: 48

Answers (1)

Bandyman
Bandyman

Reputation: 43

I ended up making a batch file to run the commands. It took a while but I managed to make it run with all the arguments it needed. Here is a snippet of what I ended up doing.

SET path=directory 
SET port=portaddress
SET wrk=workspace
SET arg= arguments from a json file

echo Setting up Enviroment
start "" config.bat

echo Running Changlists through arg
start "" %path% %arg% 000000 %wrk% %port%
start "" %path% %arg% 000000 %wrk% %port%

There was quite a few good resources I found when coming up with this which may be useful to others who are new to batch.

This was the most helpful : Batch Help

The Perforce site also helped a lot too : Perforce

Upvotes: 1

Related Questions