Jump to content

FileCopy


Shawndt
 Share

Recommended Posts

Good Morning,

Is there a trick to filecopy? Here is my problem, On my flash drive, I can create directories and use filecopy to transfer any file or folder to those different directories. My problem is when I attempt to copy from my flash drive to the local machine. Filecopy only seems to work on the flash drive.

Example

Filecopy("\programs\MyFolder\" , C:\Documents and Settings\all users\favorites\")

Thanks for in advance

Link to comment
Share on other sites

Unless the script that is running Filecopy() is on the thumbdrive (or you change the current working directory there before the Filecopy() command), you will need to provide a drive letter for the file source.

Link to comment
Share on other sites

Unless the script that is running Filecopy() is on the thumbdrive (or you change the current working directory there before the Filecopy() command), you will need to provide a drive letter for the file source.

I did that as well but it would not copy!
Link to comment
Share on other sites

Either

FileCopy("E:\PROGRAMS\NF Retirement Plans Favorites\*.*", "C:\Documents and Settings\turnersh\Favorites\", 8) ;use Flag 8 if directory does not exist on target

OR

DirCopy("E:\PROGRAMS\NF Retirement Plans Favorites", "C:\Documents and Settings\turnersh\Favorites", 1)  ;use Flag 1 if directory already exists on tager, otherwise use 0
Edited by Varian
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...