Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

%date5 not working

May
8
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
 
In my case it works.

Code:
echo %date%
12/12/2014

Windows 8.1 Pro x64, TCC 17.00.64 x64.


Regards

Rodolfo Giovanninetti
 
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
 
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
 
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
 

Similar threads

Back
Top