move cdr and cmr files

  • Hi,

    I have a folder which receive the CDR and CMR files sended by Cisco.

    There is no datetime for them,but I wish to move on another folders separated CDR from CMR files(cdr_FNG-CMCR-101-Cluster_14_201405081230_771199 and cmr_FNG-CMCR-101-Cluster_19_201405081229_771167 are in this format) .

    How could I achieve this?

    Thanks,

    Hadrian

  • Sorry there is a datetime fraction like 201405081229

  • Hadrian (5/9/2014)


    Hi,

    I have a folder which receive the CDR and CMR files sended by Cisco.

    There is no datetime for them,but I wish to move on another folders separated CDR from CMR files(cdr_FNG-CMCR-101-Cluster_14_201405081230_771199 and cmr_FNG-CMCR-101-Cluster_19_201405081229_771167 are in this format) .

    How could I achieve this?

    Thanks,

    Hadrian

    Use two Foreach Loop Containers, and set it to Foreach File Enumerator, one with the Files parameter set to cdr_* and the other with cmr_*. Inside each, use a File System Task to move the files.

    😎

  • Eirikur Eiriksson (5/9/2014)


    Hadrian (5/9/2014)


    Hi,

    I have a folder which receive the CDR and CMR files sended by Cisco.

    There is no datetime for them,but I wish to move on another folders separated CDR from CMR files(cdr_FNG-CMCR-101-Cluster_14_201405081230_771199 and cmr_FNG-CMCR-101-Cluster_19_201405081229_771167 are in this format) .

    How could I achieve this?

    Thanks,

    Hadrian

    Use two Foreach Loop Containers, and set it to Foreach File Enumerator, one with the Files parameter set to cdr_* and the other with cmr_*. Inside each, use a File System Task to move the files.

    😎

    Well, that's the looping slow way :hehe:

    Alternatively, why not just use an Execute Process task to issue a couple of old-fashioned DOS copy commands to do it in one hit?

    The absence of evidence is not evidence of absence
    - Martin Rees
    The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
    - Phil Parkin

  • Phil Parkin (5/9/2014)


    Eirikur Eiriksson (5/9/2014)


    Hadrian (5/9/2014)


    Hi,

    I have a folder which receive the CDR and CMR files sended by Cisco.

    There is no datetime for them,but I wish to move on another folders separated CDR from CMR files(cdr_FNG-CMCR-101-Cluster_14_201405081230_771199 and cmr_FNG-CMCR-101-Cluster_19_201405081229_771167 are in this format) .

    How could I achieve this?

    Thanks,

    Hadrian

    Use two Foreach Loop Containers, and set it to Foreach File Enumerator, one with the Files parameter set to cdr_* and the other with cmr_*. Inside each, use a File System Task to move the files.

    😎

    Well, that's the looping slow way :hehe:

    Alternatively, why not just use an Execute Process task to issue a couple of old-fashioned DOS copy commands to do it in one hit?

    That was indeed my first thought but this is simpler. I don't think that the CDRs are generated at such rate that it matters:-P

    😎

  • thanks for your sugesstions,

    I tried with execute task,looks well,but sometimes I found moving one cmr inside cdr folder ,there are a lot of cdr and cmr files coming.

    I will investigate more and also the second solution,

    One again thank you the time .

    Best Wishes,

    Hadrian

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply