Copy with original date and time stamp

Copy with original date and time stamp

Postby cdmmaui » Tue Jul 17, 2007 3: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
User avatar
cdmmaui
 
Posts: 689
Joined: Fri Oct 28, 2005 9:53 am
Location: Houston ∙ Chicago ∙ Los Angeles ∙ Miami ∙ London ∙ Hong Kong

Postby James Bott » Tue Jul 17, 2007 3: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby cdmmaui » Thu Oct 11, 2007 2:45 am

Hi James,

Thank you for your help. I really appreciate it!!!
*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
User avatar
cdmmaui
 
Posts: 689
Joined: Fri Oct 28, 2005 9:53 am
Location: Houston ∙ Chicago ∙ Los Angeles ∙ Miami ∙ London ∙ Hong Kong

Postby James Bott » Thu Oct 11, 2007 3:00 am

Glad I could be of help.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 46 guests