Salve a tutti ho questo problema.
Direttamente da codice vba in access vorrei fare un upload di un file xls sulla cartella public del mio dominio, ma il problema è che non riesco a creare nel giusto modo il file batch da lanciare.
Vi posto il codice che ho creato e che richiamo da access attraverso una call.
codice:
    strPath = "C:\Paradisea\mdb-database\" ' percorso del file per prova mia in locale
    strFileName = "ExportClienti.xls" 'Name of file to upload
    'FTP Server Settaggi
    ftpServer = "ftp.paradiseabenessere.com"
    strUserName = "xxxxxxxx@aruba.it"
    strPassword = "aaaaaaaa"
    pFile = FreeFile
    Open strPath & "up.txt" For Output As pFile
    Print #pFile, "user"
    Print #pFile, strUserName
    Print #pFile, strPassword
    Print #pFile, "cd /paradiseabenessere.com/public "
    Print #pFile, "bin"
    Print #pFile, "Put " & strPath & strFileName
    Print #pFile, "quit"
    Close pFile
   'CREO IL FILE BATCH
    pFile = FreeFile
    Open strPath & "FTP_Run.bat" For Output As pFile
    Print #pFile, "ftp -n -s:" & "up.txt " & ftpServer
    Print #pFile, "Pause"
    Close pFile


    'ESEGUO FTP
    Shell strPath & "FTP_Run.bat", 1
L'errore che mi viene restituito a monitor poichè ho inserito 1 nell'ultima riga per vedere quello che succede nel prompt è:
ERRORE NELL'APERTURA DEL FILE DI SCRIPT UP.TXT
Vi prego aiutatemi