[AccessD] Copying a file

DWUTKA at marlow.com DWUTKA at marlow.com
Tue Jan 27 13:49:05 CST 2004


Private Declare Function CopyFile Lib "kernel32" Alias "CopyFileA" (ByVal
lpExistingFileName As String, ByVal lpNewFileName As String, ByVal
bFailIfExists As Long) As Long

CopyFile "C:\MyFile.txt" & chr(0), "C:\NewName.txt" & chr(0),False

Drew

-----Original Message-----
From: Gowey Mike W [mailto:Mike.W.Gowey at doc.state.or.us]
Sent: Tuesday, January 27, 2004 1:12 PM
To: Access Developers discussion and problem solving
Subject: [AccessD] Copying a file



Hi Everyone,

Could anyone tell me how you would copy a file from one name to another?
I currently have in my application to rename a file by using:

 Name strFileName As strNewName

What I would like to be able to do is copy it to another file name
rather than renaming it.

Thanks in advance for your help.

Mike Gowey, MCSA, A+
Team Leader - SRCI
Information Systems & Services Division

_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com


More information about the AccessD mailing list