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

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Post Reply
sah
Posts: 97
Joined: May 28th, 2015, 3:16 pm

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

Post 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")
Gregory Martin
Posts: 1792
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

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

Post by Gregory Martin »

You should be able to use wildcards, so try one of the following:
syncfile(GET, "/Survey/*.pen")

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