App.Path & "\Templates"
Dim fPath As New FileSystemObject Dim Repertoire as String = App.Path & "\Templates" If fPath.FolderExists(Repertoire) Then fPath.DeleteFolder (Repertoire), True DoEvents fPath.CreateFolder (Repertoire) DoEvents If Not fPath.FolderExists(Repertoire) Then MsgBox "Impossible de créer le répertoire " & Repertoire, vbExclamation Else ' donc Templates existe fPath.CreateFolder (Repertoire & Rootitem.Name) ' ==> erreur 76
App.Pathdans ce cas précis ?
If fPath.FolderExists(Repertoire) Then fPath.CreateFolder (Repertoire & Rootitem.Name)
if x > 0 then y = 1/xdonnait "division par zéro" : à quoi se fier ?
C:\Users\UserName\AppData\Roaming.
If fPath.FolderExists(App.Path & "\Templates") Then fPath.DeleteFolder (App.Path & "\Templates"), True DoEvents fPath.CreateFolder (App.Path & "\Templates") DoEvents If Not fPath.FolderExists(App.Path & "\Templates") Then MsgBox "Impossible de créer le répertoire " & App.Path & "\Templates", vbExclamation Else fPath.CreateFolder (App.Path & "\Templates\Aquanest") ' ==> Erreur : 76 : Path not found
Dim sPathUser as String sPathUser = Environ$("USERPROFILE") & "\mes documents\" MsgBox sPathUser
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionDim fPath As New FileSystemObject If Not fPath.FolderExists(App.Path & "\Stats") Then fPath.CreateFolder (App.Path & "\Stats") ' Create Statistics folder
Dim fPath As New FileSystemObject If Not fPath.FolderExists(App.Path & "\Stats") Then fPath.CreateFolder (App.Path & "\Stats") ' Create Statistics folderAppPath = C:\Program Files (x86)\RV Reef Tools