Automic Workload Automation

 View Only
  • 1.  FILETRANSFER exist file/files rename destination path

    Posted Mar 24, 2022 08:22 AM

    Hi All,

    Im looking for some solution that can rename files (ad some tag, timestamp etc.) if they are exist on destination.

    I wrote a scripts but it working for one files.

    Do your have some idea?

    Thank your help in advance!

    Bálint 



  • 2.  RE: FILETRANSFER exist file/files rename destination path

    Posted Mar 28, 2022 04:23 AM
    Edited by Bernhard Flegel Mar 28, 2022 04:27 AM
    Hello Balint,

    we use the following linux-function to rename files on a destination directory:


    function dateien_umbenennen()
    {
    for FUNCTDATEI in $@
    do
    if test -f $FUNCTDATEI
    then
    FUNCTUHRZEIT=$(date +%Y%m%d_%H%M%S)
    mv $FUNCTDATEI ${FUNCTDATEI}___sich_${FUNCTUHRZEIT}
    echo ">>> Vorhandene Datei '$FUNCTDATEI' wurde umbenannt in '${FUNCTDATEI}___sich_${FUNCTUHRZEIT}'"
    fi
    done
    }

    cd <directory>
    dateien_umbenennen $(ls -1 filename*)

    Best regards
    Bernhard


  • 3.  RE: FILETRANSFER exist file/files rename destination path

    Posted May 22, 2024 11:10 AM

    Hallo Bernhard, ich bäuchte nämlich auch sowas in dem ich von einem Pfad gerne Files umbenennen wollen würde aber in Windows hast du auch was bzw. ich kenne mich in linux nicht so gut aus. 

     




  • 4.  RE: FILETRANSFER exist file/files rename destination path

    Posted May 23, 2024 05:30 AM

    Hallo automation24/7,

    wir verwenden nur Linux-Server, daher habe ich leider keine Windows-Funktion zum Umbenennen von Dateien... sorry.

    Gruß
    Bernhard

    In english:

    Hello automation24/7,

    we only use Linux servers, so unfortunately I don't have a Windows function to rename files... sorry.

    Greetings

    Bernhard




  • 5.  RE: FILETRANSFER exist file/files rename destination path

    Posted Jun 14, 2024 10:54 AM

    hello

    why not a MULTi VARA :

    vara 1: and vara 2 are 2 VARA list

    vara 1 : list the files on server 1

    vara 2 lists the files on server2

    and 

    with a "for each workflow" which uses the "multi vara"

    inside the WF a first windows job:

    for the interection in the "vara multiple" : rename on the server 2

    and another job with the copy from the files in vara1 (server1) to the server 2  because now the way is free !

    Marc Broussard

    EQUANS INEO