[p4] Backup procedure help required - script for Perforce inWindows (DOS/VBS)?
Ivey, William
william_ivey at bmc.com
Fri Jul 27 09:11:21 PDT 2007
For simple things in a script you can also string commands
together with && or ||:
command1 && command2
Command2 will only run if command1 succeeds.
command1 || command2
Command2 will not run if command 1 succeeds.
So in your batch script you could do something like
p4d -r %P4ROOT% -jc -z || goto checkpointError
instead of the traditional "if errorlevel"
-Wm
-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Qazwart
It's been a while since I wrote DOS Batch scripts, but I believe that
"if errorlevel" can access the exiting error codes. See <http://
www.robvanderwoude.com/errorlevel.html> for more information.
On Jul 26, 2007, at 11:47 AM, Eric L wrote:
More information about the perforce-user
mailing list