Page 1 of 1

Copy with original date and time stamp

Posted: Tue Jul 17, 2007 3:10 pm
by cdmmaui
Hello,

I would like to use FWH to copy programs from the server to the workstation and keep the date and time stamp of the program on the server. In the past I used the copy command in a MS-DOS batch file to copy from the server to the workstation. I would like to accomplish in FWH, is it possible?

Thank you,

Posted: Tue Jul 17, 2007 3:34 pm
by James Bott
Darrell,

Try this:

CopyFile( cSource, cTarget )

DLL32 FUNCTION CopyFile( cExFile AS LPSTR, cNewFile AS LPSTR, lFailIfEx AS LONG );
AS BOOL PASCAL FROM "CopyFileA" LIB "Kernel32.dll"

James

Posted: Thu Oct 11, 2007 2:45 am
by cdmmaui
Hi James,

Thank you for your help. I really appreciate it!!!

Posted: Thu Oct 11, 2007 3:00 am
by James Bott
Glad I could be of help.

James