Hi,
I have scenario like this. This scenario is requested by my customer:
- Job A: Capture the date within file. I use vbs to handle this instead use the text file reading and monitoring.
- Job B : Capture the system date of the PC. I created vbs to capture the system date of the PC
- Job C: showing the date captured by Job A and Job B into the message box. The message box should be providing "Yes" and "No" button. If the date captured by Job A and Job B is appropriate, then click "Yes" button to continue to the next job. If the date between Job A and Job B are not same, then click "No" button and turns Job A to "On Hold".
For Job C I use vbs script like this:
Set objArgs = WScript.Arguments
T1 = objArgs(0)
T2 = objArgs(1)
mas="Date within file is" & T1 & chr(10) & "Date from system " & T2 & chr(10) & "Are those date are same?"
x=MsgBox(mas,4,"Operation Alert")
I name this script as messagebox.vbs.
I expected T1 and T2 are used to accommodate the date captured by Job A and Job B.
how to pass the date captured by Job A and Job B to script/argument in job C?
Please give me idea to this case.
Regards,
Rio