Hi
Did someone test this instruction to copy a file from a PC to another PC, is it ok or using robocopy is still needed to do that ?
Thanks
Nico
Hi Nico,
Yes we used already to copy from PC to PC and it is working. No need using Robocopy anymore.
Nico
Hi Nico,
it would be great to update KB209 & KB655.
I need to help a customer to broadcast user.dat to all machines when he changed it (mainly passwords)
In the help of PcVue 12.0 we have this Scada Basic example :
----------------------------
DIM fbuf1 as long; 'handle of the bufffer returned by FSTAT
DIM user1 as str; 'location of the file user.dat
DIM date as STR; 'Modification date of the file
CONST TAILLE = 0; 'offset for the file size
CONST MODIF = 4; 'offset for the file date
CONST ALLOC = 64; '22 is the minimum buffer size
sub main()
user1= "..\CTEMP\user.dat";
fbuf1 = ALLOC_BUFFER (ALLOC);
FSTAT(user1,fbuf1);
date = CGET_BUFFER(fbuf1,MODIF,20);
CYCLIC("ADDPROG",5,"DIFFUSION","","lastmodif");
end sub
sub lastmodif()
dim date_modif as STR;
FSTAT(user1,fbuf1);
date_modif = CGET_BUFFER(fbuf1,MODIF,20);
IF (CMPSTRING(date,date_modif) 0) THEN
diff();
END IF
date = date_modif;
end sub
sub diff()
'This function has to be completed by launching a batch file to copy user.dat file to other stations
print("Distribution of user.dat on all stations (directory C and CTEMP)");
end sub
----------------------------------
The fact is there is nothing to help the pcvue user / developer to broadcast the file....
I will try wiht FCOPY :unsure:
It will be great to have it inside PcVue, without coding anything... 🙂
Manu
it would be great to update KB209 & KB655.
@Gilles: This one is for you
@Manu: The Scada Basic must be updated in the help. Please create a SPR?
It will be great to have it inside PcVue, without coding anything.
It's in the Pipe..
Nico
Seriously?
Ok I will ask for your integration ....


