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.
-
- Influencer
- Posts: 12
- Liked: 3 times
- Joined: Dec 04, 2014 5:28 am
- Full Name: Ralf Neumann
- Contact:
-
- 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
No, it is not. Though, both parameters can be gotten via VB&R PS snap-in. Thanks.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?
-
- 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
Thanks. I'll will explore the powershell.
-
- 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
Just to give you some general idea:
Thanks.
Code: Select all
$Job = Get-VBRJob -name "Name of your job"
$Job.GetLastResult()
$Job.Name
Who is online
Users browsing this forum: No registered users and 298 guests