FileCopy VB function

paulcat
10-04-2001, 02:39 PM
'what does it require? I have the source and destination
'correct as when I debugged it, it gives me the correct location
'but I still get File\Path access error RUNTIME ERROR 75
'my code goes like FileCopy "C:\Hello.mdb","D:\Files"

ChiefRedBull
10-04-2001, 02:44 PM
The syntax is more like this:
<pre><font color=red>FileCopy "C:\Hello.mdb","D:\Files\Hello.mdb"

</pre></font color=red>You have to specifiy the filename too for the second argument.

Chief

"How are we to learn, if those that know will not teach... ?" - Me.

Keltus
10-04-2001, 02:44 PM
I think you're missing an extension.... try "D:\Files\Hello.mdb"

"AAAHHHHHHH!!!! I can't stand this "junior contributor" title. Self esteem is going down....

Squirm
10-04-2001, 02:45 PM
It would have to be:

<pre>FileCopy "C:\Hello.mdb","D:\Files\Hello.mdb"</pre>


And only if drive D is a writable drive

Squirm
10-04-2001, 02:46 PM
LOL - fast replies images/icons/wink.gif

ChiefRedBull
10-04-2001, 02:47 PM
Faster net user in the west. images/icons/wink.gif

Chief

"How are we to learn, if those that know will not teach... ?" - Me.

Keltus
10-04-2001, 03:00 PM
I'm going to stop trying, I always end up answering 2nd

"AAAHHHHHHH!!!! I can't stand this "junior contributor" title. Self esteem is going down....

paulcat
10-04-2001, 03:11 PM
LOL! Wow, I wam surprised 'with the number of replies :) Thanks a lot dude :)

Squirm
10-04-2001, 03:16 PM
I wam glad to help you

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum