Hola a todos,
para copiar ficheros engtre unidades utilizo COPY FILE .. TO .., y parece que todo va bien.
Pero como lo hago para que al copiar el fichero me conserve la fecha y hora original del fichero origen?
Saludos
Carlos G.
COPYFILE( "Z:\PIZZAS\CLIENTES.DBF", "C:\PIZZAS\CLIENTES.DBF", .F. )
karinha wrote:
- Code: Select all Expand view RUN
COPYFILE( "Z:\PIZZAS\CLIENTES.DBF", "C:\PIZZAS\CLIENTES.DBF", .F. )
Antonio Linares wrote:Carlos,
El tercer parámetro es para que lo sobreescriba en caso de existir:
BOOL CopyFile(
LPCTSTR lpExistingFileName, // pointer to name of an existing file
LPCTSTR lpNewFileName, // pointer to filename to copy to
BOOL bFailIfExists // flag for operation if file exists
);
bFailIfExists
Specifies how this operation is to proceed if a file of the same name as that specified by lpNewFileName already exists. If this parameter is TRUE and the new file already exists, the function fails. If this parameter is FALSE and the new file already exists, the function overwrites the existing file and succeeds.
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: No registered users and 38 guests