By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,156 Members | 989 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,156 IT Pros & Developers. It's quick & easy.

Copying my file to another location on the hard disk

P: n/a
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

Aug 24 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On 24 Aug 2006 04:14:24 -0700, "jatphat" <ja*****@gmail.comwrote:
>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
Aug 25 '06 #2

P: n/a
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
gene kelley wrote:
On 24 Aug 2006 04:14:24 -0700, "jatphat" <ja*****@gmail.comwrote:
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
Aug 25 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.