moving files and folders in access

  • Thread starter Thread starter jay
  • Start date Start date
J

jay

Is there a way to make a button in the switchboard to
copy a folder from a zip drive to the harddrive?
I don't know how to move files and folders around using
the switchboard in access 2002 and I would like to know
how to do this.
 
There's a built-in FileCopy statement:

FileCopy source, destination
 
Douglas said:
There's a built-in FileCopy statement:

FileCopy source, destination


Ok I will try it.

Will this also do a folder too or is there another
method for copying a folder to another location?
If I put let's say c:\myfolder in the source and
c:\therefolder in the destination, will it give me
c:\therefolder\myfolder?
 
jay said:
Ok I will try it.

Will this also do a folder too or is there another
method for copying a folder to another location?
If I put let's say c:\myfolder in the source and
c:\therefolder in the destination, will it give me
c:\therefolder\myfolder?

No, it won't.

You could use the CopyFile API call (see, for instance, what Randy Birch has
at http://vbnet.mvps.org/code/fileapi/copyfile.htm ) or I believe you can
use FSO (File System Object: sorry I don't have an example handy)
 

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

Back
Top