string l_lokal, l_server long l_copy l_lokal = "C:\fileA.doc" l_server = "X:\fileA.doc"
l_copy = filecopy(l_server,l_lokal,true) ada 10 file yang akan dicopy, tapi hanya 6 yang berhasil di copy, script nya sama dengan diatas, yang 4 file lagi tidak mau di copy. ketika dicek hasil return keluar 1 untuk yang berhasil di copy dan keluar 0 untuk file yang gagal di copy. udah dicoba juga pake external function : CopyFileA(l_server, l_lokal, false) tapi hasil nya sama juga, tetap 6 file yang berhasil di copy, yang 4 lagi gagal... oh ya, file di lokal sudah ada, sifatnya replace dari file yang ada di server 2011/5/31 Donny Irsandi Azas <[email protected]> > > > aneh juga tuh, > script lengkapnya gimana? > > On Tue, May 31, 2011 at 2:25 PM, <[email protected]> wrote: > >> >> >> kalau return nya 0 kenapa tuh pak? kemarin nyoba return nya 0. >> >> On Sat, May 28, 2011 at 1:44 PM, Donny Irsandi Azas <[email protected]>wrote: >> >>> >>> >>> Syntax >>> >>> FileCopy ( sourcefile, targetfile {, replace } ) >>> >>> Argument Description >>> sourcefile String for the name of the file you want to copy >>> targetfile String for the name of the file you are copying to >>> replace >>> (optional) Boolean specifying whether to replace the target file >>> (true) or not (false) >>> Return value >>> >>> Integer. Returns values as follows: >>> >>> 1 - Success >>> -1 - Error opening sourcefile >>> -2 - Error writing targetfile >>> >>> >>> ps. Baca help dulu dong >>> >>> >>> >>> 2011/5/28 Matius E <[email protected]> >>> >>>> >>>> >>>> Bapak/ibu, >>>> Minta bantuan tanya (Ask) bagaimana cara copy file dalam program PB? >>>> Misalnya: Mengcopy semua file '*.xls' ke E: >>>> >>>> Thanks >>>> >>>> Sent from my BlackBerry® >>>> ------------------------------ >>>> *From: * Eko Prayoga <[email protected]> >>>> *Sender: * [email protected] >>>> *Date: *Sat, 28 May 2011 08:51:16 +0700 >>>> *To: *<[email protected]> >>>> *ReplyTo: * [email protected] >>>> *Subject: *Re: [indopb] Panggil Stored Procedure di datawindow >>>> >>>> >>>> >>>> terima kasih responya pak, sy coba dulu >>>> >>> >> > > > >
