i want to implement below p4 commands in a batch file.
Now i want to implement everything in a job service of .net using p4.net api.
To do in .net using p4.net api:
1)First sync files or latest files at workspace path.
2)Create a new Change List
3)Revert all files if there is any change in above changelist
4)Now actually opening files for edit at destination workspace path of particular file format in above changelist
5)Copy files from server source path to local workspace destination path and copy should happen recursively from server source path to destination path of particular file format like gp*.* files from source to destination
6)Revert unchanged files in above changelist
7)Now run perl command using above changelist.
Batch File:
SET P4CLIENT=deep_abc
SET P4PORT=p4ww:2012
SET SRC="\\ServerPath"
SET DEST="\\LocalPath\resources"
SET DPATH=D:
SET AS2="D:\as2\beta_0.4\bin"
%DPATH%
cd %DEST%
pause
p4 revert -c 19239674 file ...
pause
p4 edit -c 19239674 GP100*.*
pause
robocopy %SRC% %DEST% *.rom
pause
p4 revert -a 19239674 file ...
pause
%DPATH%
cd %AS2%
pause
perl as2.pl -c %P4CLIENT% submit -t -c 19239674
pause