Comprehensive data protection for all workloads
Post Reply
Njumaen
Influencer
Posts: 12
Liked: 3 times
Joined: Dec 04, 2014 5:28 am
Full Name: Ralf Neumann
Contact:

name and result code in pre- and post-Job

Post by Njumaen »

Is it possible to send the name and a result code of the job (ok/error/warning) to a pre- and post-job script so I can use %1 and %2 in a .cmd batchfile?

If not, I hereby request this feature! ;-)

Ralf.
veremin
Product Manager
Posts: 20406
Liked: 2299 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: name and result code in pre- and post-Job

Post by veremin »

Is it possible to send the name and a result code of the job (ok/error/warning) to a pre- and post-job script so I can use %1 and %2 in a .cmd batchfile?
No, it is not. Though, both parameters can be gotten via VB&R PS snap-in. Thanks.
Njumaen
Influencer
Posts: 12
Liked: 3 times
Joined: Dec 04, 2014 5:28 am
Full Name: Ralf Neumann
Contact:

Re: name and result code in pre- and post-Job

Post by Njumaen »

Thanks. I'll will explore the powershell.
veremin
Product Manager
Posts: 20406
Liked: 2299 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: name and result code in pre- and post-Job

Post by veremin »

Just to give you some general idea:

Code: Select all

$Job = Get-VBRJob -name "Name of your job"
$Job.GetLastResult()
$Job.Name
Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 298 guests