Based on what you've shown, its seems to be a little too much work on your part. Why not have QB 7 do most of the grunt work for you? All you'll need to add in your AUTOEXEC.BAT file is the link to run the program...ex
@echo off
CALL c:\miggyD\QBX.exe /run FINDDATE.BAS
.
. rest of autoexec codeing
.
Then have QB do the work (see example below)
[tt]'******start of program******
'FILENAME: finddate.bas
'PURPOSE: Runs a set of instructions if the current day
' is a MONDAY.
'
CLS
'declare variables
TempFile$ = "MyEnter.txt"
DateFile$ = "MiggyD.txt"
'write to one file
OPEN TempFile$ FOR OUTPUT AS 10
PRINT #10, CHR$(10)
CLOSE 10
SLEEP 3 'let system write to file and close before
'attempting to open the file with the DAY
'call the date function from DOS and direct output to DATEFILE$
SHELL "date < " + TempFile$ + " > " + DateFile$
'read 1st line of output
OPEN DateFile$ FOR INPUT AS 11
LINE INPUT #11, CurDate$
CLOSE 11
'comparative logic structure
IF INSTR(CurDate$, "Mon"

> 0 THEN
PRINT "Today is Monday, need to do the follow:"
PRINT : PRINT "Nothing in Queue"
ELSE
PRINT "It's not Mon, it is "; MID$(CurDate$, 17, 4)
END IF
'erase un-needed files
KILL TempFile$
KILL DateFile$
END
'****** End of program ******[/tt]
Of course you may need to adjust the MID$ func. in accordance to your date/time line, but this should work just as good as yours and without loading libruaries.
--MiggyD [sig]<p> <br><a href=mailto: > </a><br><a href= > </a><br>English is too hard to learn, the vowles change too much like come/home, comb/tomb, book/school, high/bye/sty, etc., etc. So should I say Geez or Sheez or Cheeze? hehe.[/sig]