Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
_gb3.pngwork 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
Last update : 07/04/2022 @ 21:01
Category : work with files
Page read 1136 times


Print the article Print the article


react.gifReactions to this article

Nobody gave a comment yet.
Be the first one to do it!


QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^