Fixed delay until question

Jun 4, 2008
30
0
Hi:
The following code returns control immediately:

C:\]date /t
Tue 2011/12/13

[C:\]time /t
11:22:00

[C:\]delay /b until 2011-12-13 12:00
------immediate return?

Version: TCC 13.00.21 x64 Windows 7 [Version 6.1.7601]

If I change the date to 2011-12-14 the command functions as expected.

Is this the way it is supposed to work?

Question 2: When testing the above I invoked "delay /b until 2011-12-14 12:00". The delay waits correctly but ctrl+C, ctrl-break and any other keystroke (the /b option) DOES NOT WORK. I have to close the tab in order to terminate the function.

Note: I got into this because I wanted a script that executes every hour on the hour. Using the delay without the date in the until clause worked fine until midnight so I just added today's date until the script hit 23:00 and wanted to wait on the next hour then I changed the date to tomorrows date. I can program around this but I don't think the "delay until" command is working properly. Or maybe I missed something.

David
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
I spent some time digging arou
The following code returns control immediately:

C:\]date /t
Tue 2011/12/13

[C:\]time /t
11:22:00

[C:\]delay /b until 2011-12-13 12:00
------immediate return?

I spent some time digging in the code and found that a Windows 7 API is (unpredictably) occasionally returning completely wrong results. I have a workaround for 13.01.35, which I will upload in another day or two (need to follow up on another bug report first).
 
Similar threads
Thread starter Title Forum Replies Date
Roedy unwanted delay Support 3
M TCC starts with delay on Servers Support 7
vefatica What caused the delay? Support 1
S WAD DELAY doesn't always Support 2
vefatica New question about DELAY Support 2
N Delay returns immediately Support 20
Roedy Nag Delay Support 1
vefatica Do UNTIL DATETIME date time Support 6
A TCMD10 doesn't save options until restarted Support 10
Gisle Vanem How to? 4NT "detach" question Support 2
D PDIR question Support 0
C forum Posting Question... Support 3
C question re: Move Support 3
S How to? Upgrade Question: What supporting documentation is required at time of purchase? Support 2
Peter Murschall Documentation Question to %@PSHELL Support 4
Fross Tab Question Support 6
Fross Quick Function Question Support 17
Dick Johnson Question about the Touch command Support 0
rps Documentation "Copy+Paste+run" question Support 2
vefatica SFTP question Support 17
vefatica Question about IPWorks Support 0
C How to? SHORTCUT question..... Support 6
vefatica TPIPE, crash and question Support 1
C Question / Suggestion Support 1
MickeyF Another TPIPE question Support 6
vefatica Another @EVERYTHING question Support 4
mikea How to? %@everything[] question Support 10
A License Question for Single User Support 5
Jay Sage Help Correction (and Related Question) Support 0
S Elapsed time in TCC prompt question Support 0
H command line parsing question Support 5
C Forum question Support 2
B Newbie here, I have a question. Support 4
J Dumb Question ... Support 4
Timothy Byrd Updating from TC 9 to TC 17 - TCTOOLBAR question Support 2
M A possibly stupid question about the "del" command... Support 7
M A just out of curiosity question re @DiskTotal Support 4
Fross Status Bar Time Question Support 1
A Stupid, obvious question - launch a BAT with TC Support 10
C How to? GLOBAL question Support 5
vefatica OT: VisualStudio question Support 1
vefatica Wildcard question Support 4
Dan Glynhampton v15 installer question Support 2
C Move question with Encrypted file... Support 6
M Maybe Maybe I'm being stupid (again), but a simple question... Support 4
C Message Board question Support 1
James Miller How to? filename completion question Support 1
C coding question Support 3
M A just-out-of-curiosity question because it's ... Support 6
Frank question to FOLDERMONITOR Support 14

Similar threads