1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

%date5 not working

Discussion in 'Support' started by PeterR, Dec 12, 2014.

  1. PeterR

    Joined:
    May 11, 2010
    Messages:
    7
    Likes Received:
    0
    I'm using %date% in some btm-Jobs.

    Unfortunately %date% does not return a date as expected but returns "??????"

    Using version 17.

    Anyone any ideas?

    Peter
     
  2. Rodolfo

    Joined:
    May 20, 2009
    Messages:
    213
    Likes Received:
    0
    In my case it works.

    Code:
    echo %date%
    12/12/2014
    
    Windows 8.1 Pro x64, TCC 17.00.64 x64.


    Regards

    Rodolfo Giovanninetti
     
  3. PeterR

    Joined:
    May 11, 2010
    Messages:
    7
    Likes Received:
    0
    In my case

    Windows 7, TCC 17.00.64 x32
    %date%
    TCC: unbekannter Befehl "??????"


    echo %date%
    12.12.2014


    Windows 7, TCC 17.00.64 x64
    %date%
    TCC: Unbekannter Befehl "12.12.2014"

    echo %date%
    12.12.2014


    so 64Bit version dioes it right, 32Bit-versin does it wrong


    Peter
     
  4. Rodolfo

    Joined:
    May 20, 2009
    Messages:
    213
    Likes Received:
    0
    %date% is a variable, not a command.
    What do You expect to do?

    Regards

    Rodolfo Giovanninetti
     
  5. PeterR

    Joined:
    May 11, 2010
    Messages:
    7
    Likes Received:
    0
    Sure, but sometimes this variable seems not to be interperted as it shoud.
    "??????" is not a date.

    a)
    I create a file using the variable
    echo XYZ > c:\temp\peter-%DATE%.txt

    Result is that a file c:\temp\peter-12.12.2014.txt is created

    b)
    I try to access that file
    type c:\temp\peter-%DATE%.txt

    Result is :
    TCC: (Sys) can not find file
    "c:\temp\peter-??????.txt"

    So the variable is not interpreted as it should.

    Regards

    Peter
     
  6. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,869
    Likes Received:
    83
    Fixed in build 66 (compiler bug x86 only).
     
  7. PeterR

    Joined:
    May 11, 2010
    Messages:
    7
    Likes Received:
    0
    cool thanks
     

Share This Page