ftp automation

ScriptFTP

The professional tool to automate FTP, SFTP, FTPS and schedule FTP batch jobs

The forum is now read only. Please, go to the the main ScriptFTP website if you need help.
Post here if you experience file transfer problems or unexpected errors.
Hi, I have this problem...

-when I write this code:
Code: Select all LOCALCHDIR("D:\SKUSKA\") EXEC("C:\WinPRG\ZIP\zip.exe -r xxx.zip D:\SKUSKA\01\") LOCALCHDIR("D:\SKUSKA\") new_file_name=CONCAT("D:\SKUSKA\backup-",GETDATE(FORMAT2),".zip") RENAMEFILE("D:\SKUSKA\xxx.zip",new_file_name)  


-show me:
  • Running D:\SKUSKA\xxx.ftp

    LOCALCHDIR("D:\SKUSKA\")
    Changing current local directory to D:\SKUSKA\

    EXEC("C:\WinPRG\ZIP\zip.exe -r xxx.zip D:\SKUSKA\01\")
    adding: SKUSKA/01/ (256 bytes security) (stored 0%)
    adding: SKUSKA/01/aa.txt (188 bytes security) (stored 0%)
    adding: SKUSKA/01/ab.txt (188 bytes security) (stored 0%)
    adding: SKUSKA/01/ac.txt (188 bytes security) (stored 0%)

    LOCALCHDIR("D:\SKUSKA\")
    Changing current local directory to D:\SKUSKA\

    RENAMEFILE("D:\SKUSKA\xxx.zip","D:\SKUSKA\backup-2010_04_22-08_45.zip")
    ***** RENAMEFILE Error #12001: Not connected.

    Finished
???

Thank you very much
Hello Mihcal,

It seems that your server closes the connection for some unknown reason. Could you enable verbose mode and run the script again? Verbose mode is enabled putting VERBOSE(ON) on the top of the script.