This content has been marked as final. Show 3 replies
Are you using something like the following (taken form a custom script to validate current period):-
Set objStatus = API.MaintenanceMgr.fProcessStatus(strLoc, strCat, strPer)
'Check If POV is Locked
If objStatus.intLockState = 60 Then
depending on where the code to send e-mails is, you would probably need to set the strloc/strcat/strper based on your file name. Other things to consider would be whether the users POV mode is global or local, and also whether the system is locked to prevent users on-line changing the POV (especially if global)
Thanks for the reply.
I have the code in the batch script, and I was using
With API.MaintenanceMgr.fProcessStatus(CStr(strLoc), CStr(strCat), CStr(strPer))
If .intLockState = 60 Then
Is it still possible to set strLoc,strCat, and strPer based on the filename using a batch script?
I would have thought so. Try by hard-coding a known location / category / period that is locked to prove it before adding the code to use the file name info.