Page 1 of 1

Synchronization :Copying multiple files and putting multiple files in CSPro 7

Posted: May 20th, 2017, 3:44 pm
by sah
Hello George/Josh,
Is it possible to use mget & mput for multiple files when using the synchronization command. so for instance for a case of

if
syncfile(GET, "/Survey/A.pen")=1 and
syncfile(GET, "/Survey/B.pen")=1 and
syncfile(GET, "/Survey/C.pen")=1 then
errmsg("Successfully updated A , B & C app from Server");
endif;
so we can have
if suncfile(mGET,"/Survey/A.pen", "/Survey/B.pen,("/Survey/C.pen")

Re: Synchronization :Copying multiple files and putting multiple files in CSPro 7

Posted: May 21st, 2017, 8:44 am
by Gregory Martin
You should be able to use wildcards, so try one of the following:
syncfile(GET, "/Survey/*.pen")

syncfile(GET, "/Survey/?.pen")