Share your opinion
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
|
work with files - Copyrecursivly folder and files
Copy recursively files and folders on gambas
It's very simple to cpy files on gambas. you have to use key word : COPY. But if you want to copy files and folders recursivly , it doesn't exist for the moment key word. That's why i created this function. You have to add in your code this method : Private Sub mycopy(mysource As String, mydestination As String) Dim s As String Mkdir mydestination For Each s In RDir(mysource, "*") If Not IsDir(mysource &/ s) Then If Not Exist(mydestination &/ s) Then Copy mysource &/ s To mydestination &/ s Else Mkdir mydestination &/ s Endif Next End Call this method with this code bellow: mycopy("foldertocopypath", "destinationpath") foldertocopypath Is source path to copy destinationpath is destination folder who will receive files and folders Thanks for your attention and thanks for Vuoot for his help. ;) Creation date : 07/04/2022 @ 21:01 Reactions to this article
| QUICK MENU
SEARCH
LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS
visitors visitors online ARCHIVES GAMBAS 1/2
|