Copying my file to another location on the hard disk

  • Thread starter Thread starter jatphat
  • Start date Start date
J

jatphat

Somebody help me.
How do i copy my Access database from one location on my hard disk to
another .
i tried file.copy(source, distination ) but the file would not move.
i always get this error message "Another process is using the
destinationFileName" .
thanks
 
Somebody help me.
How do i copy my Access database from one location on my hard disk to
another .
i tried file.copy(source, distination ) but the file would not move.
i always get this error message "Another process is using the
destinationFileName" .
thanks

"File.Copy" by design does not allow a file that is currently open to be copied.
It appears that you are trying to create a copy of an Access database file that is currently open
and in use.

If using VB2005, you might look at My.Computer.FileSystem.CopyFile method which, I believe, will not
error on copying open files.

Gene
 
I am using vb.net 2003 and i am not able to use the file.copy
(source,destination) to copy my access file that is not opened to
another location on my hard disk
 
Back
Top