%date5 not working

May 11, 2010
8
0
#1
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
 
May 11, 2010
8
0
#3
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
 
May 20, 2009
233
1
54
ITALY
#4
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
%date% is a variable, not a command.
What do You expect to do?

Regards

Rodolfo Giovanninetti
 
May 11, 2010
8
0
#5
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