Announcement

Collapse
No announcement yet.

Non printing characters screwing up my txt file

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Non printing characters screwing up my txt file

    I have a batch file that combines a few txt files into a group txt file:

    copy NZTGB737.txt #NZLB737.txt
    copy #NZLB737.txt+NZROB737.txt
    copy #NZLB737.txt+NZQNARRB737.txt
    copy #NZLB737.txt+NZQNDEPB737.txt
    copy #NZLB737.txt+NZWNB737.txt

    However, when it is created, it has non printing characters that cause issues with some of my software
    This is what one of the txt files look like:

    Naverus Dispatch RNP Availability Forecast
    NZRO: Predicted ANP/EPU values for (A320) from
    Thu 24-Mar-2011 1400Z to Fri 25-Mar-2011 0300Z
    RNP 0.10 available 1400Z to 0300Z
    RNP 0.15 available 1400Z to 0300Z
    RNP 0.30 available 1400Z to 0300Z

    This is what it looks like when combined:

    Naverus Dispatch RNP Availability Forecast
    NZTG: Predicted ANP/EPU values for (B737) from
    Thu 24-Mar-2011 1400Z to Fri 25-Mar-2011 0300Z
    RNP 0.11 available 1400Z to 0300Z
    RNP 0.18 available 1400Z to 0300Z
    RNP 0.30 available 1400Z to 0300Z
    Naverus Dispatch RNP Availability Forecast
    NZQNARR: Predicted ANP/EPU values for (B737) from
    Thu 24-Mar-2011 1400Z to Fri 25-Mar-2011 0300Z
    RNP 0.11 available 1400Z to 0300Z
    Except for 1448Z to 1449Z
    Except for 1600Z to 1627Z
    RNP 0.18 available 1400Z to 0300Z
    RNP 0.30 available 1400Z to 0300Z
    Naverus Dispatch RNP Availability Forecast
    NZQNDEP: Predicted ANP/EPU values for (B737) from
    Thu 24-Mar-2011 1400Z to Fri 25-Mar-2011 0300Z
    RNP 0.11 available 1400Z to 0300Z
    Except for 1448Z to 1449Z
    Except for 1600Z to 1626Z
    Except for 1656Z to 1722Z
    RNP 0.18 available 1400Z to 0300Z
    RNP 0.30 available 1400Z to 0300Z
    Naverus Dispatch RNP Availability Forecast
    NZWN: Predicted ANP/EPU values for (B737) from
    Thu 24-Mar-2011 1400Z to Fri 25-Mar-2011 0300Z
    RNP 0.11 available 1400Z to 0300Z
    Except for 1616Z to 1625Z
    RNP 0.18 available 1400Z to 0300Z
    RNP 0.30 available 1400Z to 0300Z
    

    The little arrow causes my software to only display the first section before the first arrow.

    Is there anyway I can get rid of it with the copy command, or do I have to do something else?

  • #2
    Re: Non printing characters screwing up my txt file

    Merging files in just one command-line will reduce the nonPrintable characters to just one.

    The best option though is using the copy /bin (or /b) swith,
    Code:
    copy /b "NZTGB737.txt" + "<...>" + "<...>" + "<...>" + "<...>"  "#NZLB737.txt"

    /Rems
    Last edited by Rems; 25th March 2011, 12:10.

    This posting is provided "AS IS" with no warranties, and confers no rights.

    __________________

    ** Remember to give credit where credit's due **
    and leave Reputation Points for meaningful posts

    Comment


    • #3
      Re: Non printing characters screwing up my txt file

      Cheers mate

      I will try that on Monday

      Comment


      • #4
        Re: Non printing characters screwing up my txt file

        I tried it and it working very well.
        Thanks for the help

        Comment

        Working...
        X