%date5 not working

May 11, 2010
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
 
May 20, 2009
293
5
57
ITALY
In my case it works.

Code:
echo %date%
12/12/2014

Windows 8.1 Pro x64, TCC 17.00.64 x64.


Regards

Rodolfo Giovanninetti
 
May 11, 2010
8
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
 
May 20, 2009
293
5
57
ITALY
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
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
Thread starter Title Forum Replies Date
twaterloo FolderMonitor for the 1st time not working Support 5
Tim Rowe NTFS Descriptions not working Support 13
J Batcomp still not working for me in TCMD27 Support 1
M Oracle batch OPatch.bat.bat not working in TCC but correctly in CMD Support 5
M Why did BEEP just quit working? Support 12
cgunhouse SETLOCAL not working in BDEBUGGER Support 9
nickles ANSI Colors Windows 7 no longer working Support 6
K ANSI Not Working Support 8
thorntonpg option /u not working The directory name is invalid Support 5
Charles Dye Is the "File Associations" installer dialog working? Support 4
H @ceiling @floor @int not working version 21.01.63 Support 9
K Command Line Selection Not Working Support 12
G Extended directory search not working Support 4
B %@fileseek is not working ? Support 2
C "Take Command has stopped working" Support 1
H New command not working well in Windows 7 Support 4
C "TakeCommand has stopped working" Support 3
N ping DNS lookup not working Support 1
N Updater/silentall not working? Support 1
K Help Not Working Support 11
R Fixed set /r has stopped working in build 35 Support 4
U Keys and IDX not working Support 11
Jesse Heines How to? Everything Tool Not Working After Version 20 Installation Support 8
WavSlave Fixed LIST /U not working in TCC v19 Support 5
Jay Sage %_selected no longer working Support 15
S iftp copying pgp files from ftp is not working Support 11
fishman@panix.com Extended Directory Searches are not working for me in CDD Support 9
J How to set working directory Support 10
vefatica Fixed LEAVE N not working Support 7
M WAD PDir not working correctly... Support 5
Detlef Fixed ParameterChar in TCMD.INI no longer working Support 35
Jay Sage WAD Variable _LOGFILE Not Working Support 2
I v16 - Shortcuts not working Support 6
rps Fixed Win "set /p" not working in V17 build 53 Support 3
Jay Sage Toolbar Update to INI File Not Working Support 10
Jay Sage Ctrl-C Not Working Reliably to Copy Screen Content Support 4
Jay Sage Unknown_CMD Not Working Support 4
fromano Fixed /E not working in TCMD 17.0.40 while doing one way synch Support 1
R WAD Copy's command dialogue not working Support 2
C WAD @index not working in v16 x64 Support 14
Dan Glynhampton Fixed @version "force" flag not working, and unable to set separator Support 3
C RSS feed subscription not working Support 9
M @Index not working like I thought it would... Support 2
C Working with links Support 6
C Move /MD not always working Support 1
C Startup folder not working on v15 Support 6
T Documentation Comspec not working Support 3
T view command not working Support 5
J Extended directory search has stopped working Support 9
vefatica WAD TPIPE.EXE has stopped working Support 13

Similar threads