FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Copy with original date and time stamp
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM
Copy with original date and time stamp
Posted: Tue Jul 17, 2007 03:10 PM

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,

*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Copy with original date and time stamp
Posted: Tue Jul 17, 2007 03:34 PM

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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM
Copy with original date and time stamp
Posted: Thu Oct 11, 2007 02:45 AM

Hi James,

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

*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Copy with original date and time stamp
Posted: Thu Oct 11, 2007 03:00 AM

Glad I could be of help.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion