Shawndt Posted January 28, 2011 Share Posted January 28, 2011 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 More sharing options...
willichan Posted January 28, 2011 Share Posted January 28, 2011 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. My UDFs: Barcode Libraries, Automate creation of any type of project folder, File Locking with Cooperative Semaphores, Inline binary files, Continue script after reboot, WinWaitMulti, Name Aggregator, Enigma, CornedBeef Hash Link to comment Share on other sites More sharing options...
Shawndt Posted January 28, 2011 Author Share Posted January 28, 2011 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 More sharing options...
Shawndt Posted January 28, 2011 Author Share Posted January 28, 2011 this is what i used. Filecopy("E:\PROGRAMS\NF Retirement Plans Favorites", "C:\Documents and Settings\turnersh\Favorites\") Link to comment Share on other sites More sharing options...
Varian Posted January 28, 2011 Share Posted January 28, 2011 (edited) EitherFileCopy("E:\PROGRAMS\NF Retirement Plans Favorites\*.*", "C:\Documents and Settings\turnersh\Favorites\", 8) ;use Flag 8 if directory does not exist on targetORDirCopy("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 January 28, 2011 by Varian Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now