Sign in to follow this  
Followers 0
Shawndt

FileCopy

5 posts in this topic

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

Share this post


Link to post
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.

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites

this is what i used.

Filecopy("E:\PROGRAMS\NF Retirement Plans Favorites", "C:\Documents and Settings\turnersh\Favorites\")

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0