|
-
Mar 11th, 2003, 10:24 PM
#1
Thread Starter
Frenzied Member
copy folder
I have a folder:
c:\program files\vih\master8
which has about 100 folders in it, and each of the folders has a few files in it
can I copy all of the folders in the "master8" folder to "c:\program files\vih"
i'm using Access 97
thanks,
Dimava
NXSupport - Your one-stop source for computer help
-
Mar 12th, 2003, 02:55 AM
#2
Hyperactive Member
Yes you can, add a reference to 'Microsoft Scripting Host' to your application, and then make this function:
VB Code:
Dim fso As New Scripting.FileSystemObject
Dim fld As Scripting.Folder
For Each fld In fso.Folders
fso.MoveFolder fld.path, "c:\program files\vih"
Next fld
set fso = nothing
I did it without code editor, hope it helps you out.
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
|