|
-
Mar 11th, 2001, 03:32 PM
#1
Thread Starter
New Member
Can anyone tell me the code to copy files from drive A: to drive C: on the click of a button. (VB V.5)
Thanks a lot.
P.S. Finding it difficult to get FileCopy to work!
-
Mar 11th, 2001, 03:34 PM
#2
PowerPoster
Make sure you leave out the paranthesis
Code:
FileCopy "A:\whatever.txt, "C:\Test\whatever.txt"
Last edited by Lethal; Mar 11th, 2001 at 03:37 PM.
-
Mar 11th, 2001, 03:39 PM
#3
Thread Starter
New Member
Not Working!
Just pasted code in and altered file names, got the following error message :
"Expected list seperator or )" - The cursor appeared avoer the C:
Any info to fix this?
Thanks
-
Mar 11th, 2001, 03:42 PM
#4
PowerPoster
Yeah, dont use the paranthesis. Just:
Code:
FileCopy "C:\Test.txt", "C:\Testing\Test.txt"
-
Mar 11th, 2001, 03:49 PM
#5
Thread Starter
New Member
Now I am getting another error ...
I left the parenthesis out, altered the filenames but this time the error message is :
"Invalid Outside Procedure" - This appears over my filename which is "A:\Folder1\Item1.XLS"
How can I fix this error
-
Mar 11th, 2001, 03:55 PM
#6
this isn't just free floating code, right? you need to have it inside a Sub or Function...
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|