I am trying to revert files in a change list with -a and -c option. I did manually like this.
p4 revert -c 19264444 file ...
pause
p4 edit -c 19264444 GP*.*
pause
robocopy %SRC% %DEST% *.rom
pause
p4 revert -a 19264444 file ...
Trying using p4api.net
Also while opening particular files for edit at a given workspace location like this. Not sure whether format will be accepted appended in the destination path.
//Function for Edit changelist
public void EditChangeList(Changelist cl, string fileFormat, string destinationPath)
{
var rep = Connect();
var fs = new FileSpec(new DepotPath(destinationPath + "/" + fileFormat + "/..."));
var ls= rep.Connection.Client.EditFiles(new Options(EditFilesCmdFlags.None, cl.Id, null), fs);
}
// call of above function
p4.EditChangeList(changelist, gp*.*", destinationPath);
Also i couldn't find how to revert files in change list using p4api.net. Could some one guide on this?