
Dim path As String
path = "%appdata%Documentazione"
Dim Sh, fs
Dim dest
Set fs = CreateObject("Scripting.FileSystemObject")
If Not fs.FolderExists(path) Then
Set Sh = CreateObject("shell.application")
Set dest = Sh.Namespace("%appdata%")
dest.copyhere "ftp://prova_it:1Xxxxx@xx.xxx.xxx.xx/Documentazione"
End If
|
Dim path As String, AppData As String
Dim Sh, fs
Dim dest
AppData = Environ("appdata")
path = AppData & "Documentazione"
Set fs = CreateObject("Scripting.FileSystemObject")
If Not fs.FolderExists(path) Then
Set Sh = CreateObject("shell.application")
Set dest = Sh.Namespace(AppData & "")
dest.copyhere "ftp://prova_it:1Xxxxx@xx.xxx.xxx.xx/Documentazione"
End If
Set Sh = Nothing
Set fs = Nothing
Set dest = Nothing
|
