Hi Can anybody explain, How to copy folder in VB6. All the files in that folder should be copied. Please help
daniwaber
0
Light Poster
Recommended Answers
Jump to PostTry this code, it needs a form and a button(Command1) -
Option Explicit Private Declare Function SHFileOperation _ Lib "shell32.dll" _ Alias "SHFileOperationA" _ (lpFileOp As SHFILEOPSTRUCT) As Long Private Type SHFILEOPSTRUCT hWnd As Long wFunc As Long pFrom As String pTo As String fFlags As Integer …
Jump to PostTry:
Private Sub cmdBackup_Click() call FCopy End Sub Public Sub FCopy() On Error GoTo err: 'myFile - Change if desired Dim myFile As New FileSystemObject Set myFile = Nothing myFile.CopyFile App.Path & "\MyFolderFrom", App.Path & "\MyfolderTO\", True 'App.Path - if the folder you would like to copy …
All 5 Replies
AndreRet
526
Senior Poster
abelingaw
69
Posting Whiz in Training
AndreRet
526
Senior Poster
abelingaw
69
Posting Whiz in Training
AndreRet
526
Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.