How can I verify if the base system copied a .txt file to a remote workstation? (MICROSCADA SYS600 9.2)
I was testing with the following function:
@DESTINY = "\\DAGGMZ_WS2\SC" @ORIGIN = COPY_RP_DI:CCM @COPY_FILE = OPS_CALL("COPY 'ORIGIN' 'DESTINY'",0) #IF %COPY_FILE.ST <> 0 #THEN #SET COPY_RP_DI:TIU = 1 #ELSE #SET COPY_RP_DI:TIU = 0
But the ST attribute of the OPS_CALL function returns the value zero as if the copy was successful when it is not, because I have the workstation disconnected from the LAN.
The operating system of the workstation is windows 7.
Can someone help me with this?
@DESTINY = "\\DAGGMZ_WS2\SC" @ORIGIN = COPY_RP_DI:CCM @COPY_FILE = OPS_CALL("COPY 'ORIGIN' 'DESTINY'",0) #IF %COPY_FILE.ST <> 0 #THEN #SET COPY_RP_DI:TIU = 1 #ELSE #SET COPY_RP_DI:TIU = 0
But the ST attribute of the OPS_CALL function returns the value zero as if the copy was successful when it is not, because I have the workstation disconnected from the LAN.
The operating system of the workstation is windows 7.
Can someone help me with this?
Voted best answer
@COPY_FILE = OPS_CALL("COPY 'ORIGIN' 'DESTINY'",0)
I think you call here some OS related function here "copy"
look here
https://docs.microsoft.com/en-us/wind...
Please note if your filename contains SPACES, take special care to test these combinations or avoid these.
It possible, that the call of the OPS_CALL command does not work properly.
Add new comment