|
-
Feb 26th, 2007, 03:37 AM
#1
Thread Starter
Lively Member
[RESOLVED] copy folder
for example,
i have a folder (My Music) in directory
"C:\Documents and Settings\Owner\My Documents\My Music"
now i want to copy My Music to another directory, likes....
"C:\Documents and Settings\Owner\My Documents\My Folder\My Music"
how to do it?
** is copy, not shortcut......
Last edited by chxxangie; Feb 26th, 2007 at 03:59 AM.
-
Feb 26th, 2007, 04:00 AM
#2
Thread Starter
Lively Member
Re: copy folder
VB Code:
Private Sub Command1_Click()
FileCopy "a.txt", "b.txt"
End Sub
-
Feb 26th, 2007, 04:00 AM
#3
Re: copy folder
1. Add a reference to Microsoft scripting runtime.
2. Write the following
VB Code:
Dim fso As New FileSystemObject
fso.CopyFolder "C:\TEST\New", "C:\TEST", True '--to allow overwrite
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
|