|
-
Aug 28th, 2000, 08:50 PM
#1
Thread Starter
Lively Member
Does anybody know how to copy an entire folder for vb is there some api out there because FileCopy doesn't help if you can please reply thanx in advance.
[Edited by vb5prog on 08-28-2000 at 09:53 PM]
Windows XP Professional
Microsoft Visual Basic 6.0 Professional
-
Aug 28th, 2000, 09:17 PM
#2
Take a look at this thread which shows how to copy all files in a folder and put them in another.
-
Aug 28th, 2000, 09:59 PM
#3
Thread Starter
Lively Member
the code didn't work i have vb5 without any servie packs so is there any other volunters
Windows XP Professional
Microsoft Visual Basic 6.0 Professional
-
Aug 28th, 2000, 10:25 PM
#4
Frenzied Member
well..... you can in a way I think...
just leave the error, and when you give it to other people, just supply the vb6 runtime files, and you'll be allset
I never tried it, but is should work
NXSupport - Your one-stop source for computer help
-
Aug 28th, 2000, 11:06 PM
#5
_______
<?>
Code:
'copy or save all files in one folder to a different directory
Private Sub Command1_Click()
Dim SourcePath As String, DestPath As String
Dim stFile As String
'folder I want to copy the files form
SourcePath = "C:\my documents\"
DestPath = "c:\MyNewFolder\"
'all files in the folder C:\my documents
stFile = Dir$(SourcePath & "*.*")
Do While stFile <> ""
'copy all the files in c:\my documents to C:\MyNewFolder
FileCopy SourcePath & stFile, DestPath & "\" & stFile
stFile = Dir
Loop
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
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
|