How to copy a file

G

Geir H

Hi
This command doesn't seem to work:
FileSystemObject.CopyFile "n:\maler\istkar.exe", "a:\"
Can someone please explain to me what's wrong with the code?
 
J

Jonathan West

Let's get the obvious question out of the way first. Have you set a
reference to the Microsoft Scripting Runtme, in Tools References in the VBA
editor? The command won't work without that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top