Hi I would like to be able to sync perforce on my build server from another server programmatically using C# . Server A has the EXE on it. Server B has perforce.
I have admin privileges on both machines.
I would like to use something like
System.Diagnostics.Process.Start("p4 sync", "\"" + path + @""" -f //release/production/...")
I have the computer connection
ManagementScope scope = new ManagementScope("\\\\" + computer_name + "\\root\\cimv2");
scope.Connect();
I am not able to figure out how to put it all together. Any help would be greatly appreciated. Thank you