|
-
Aug 23rd, 2000, 10:25 AM
#1
Thread Starter
Junior Member
Does anyone have a code snipit to share that shows how to copy c:\start\*.* to c:\end ? The wild card copy seems to be a problem. Thanks.
-
Aug 23rd, 2000, 10:44 AM
#2
Untested, but I had a previous problem where I had to use a single wildcard :
c:\start\* to c:\end
and this worked insted, I will take another look though...
-
Aug 23rd, 2000, 12:27 PM
#3
some of the functions in the FileSystemObject allow wildcards. Look it up on the MSDN CD or website.
-
Aug 23rd, 2000, 12:51 PM
#4
reeset shows an example of how to do this in this thread.
-
Aug 23rd, 2000, 01:23 PM
#5
_______
<?>
Code:
'copy the contents of a folder or directroy
'to a folder on a different drive
'using a wild card
Private Sub Form_Load()
Dim FSO As Object
On Error GoTo NOFSO
Set FSO = CreateObject("Scripting.FileSystemObject")
On Error Resume Next
FSO.CopyFile "C:\MySubDir\MyOtherSubDir\*", "C:\MyNewDir\", True
Set FSO = Nothing
Exit Sub
NOFSO:
MsgBox "FSO CreateObject Failed"
End Sub
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Aug 23rd, 2000, 03:29 PM
#6
Thread Starter
Junior Member
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
|