Hi;
  There may be times when you want your PC to do something on boot-up,
but only once a day.

  As I use 4DOS as my command processor, I've developed a technique that
allows me to do this.

  In my AUTOEXEC.BAT file, I have the line

  if %@fileage[c:\jpstree.idx] lt %@makeage[%_DATE] CDD /S

  Which means that if the date of the file c:\jpstree.idx is less than
the current date, update the file jpstree.idx

  If I had other once-a-day tasks to perform, I'd place them BEFORE this
line, as executing CDD /S updates the file c:\jpstree.idx, making it of
no further use for once-a-day date comparisons. Example;

  if %@fileage[c:\jpstree.idx] lt %@makeage[%_DATE] echo Task 1
  if %@fileage[c:\jpstree.idx] lt %@makeage[%_DATE] echo Task 2
  if %@fileage[c:\jpstree.idx] lt %@makeage[%_DATE] CDD /S

  Please note that you must have Extended Directory Services enabled in
order for the jpstree.idx file to exist. To enable Extended Directory
Services, add the line FuzzyCD=x to your 4DOS.INI file, where x is the
level of Extended Directory Services that you desire. Example;

[4dos]
FuzzyCD=3
BrightBG=Yes
ColorDir=exe:bri red

  There are other solutions which involve third-party .COM or .EXE
files, but since 4DOS comes with the tools as part of its batch
language, this makes a most efficient solution. BTW, I'm using 4DOS
Version 6.00B. For more information on 4DOS, go to http:\\www.jpsoft.com

Joe Caverly
Watkins Independent Representative #183957
Order: 800-665-5756
Voice: 519-633-0709
  FAX: 519-633-9954
  WWW: http://www.watkins-inc.com
EMail: [EMAIL PROTECTED]

Map to Joe's House:
http://www.worldpages.com/whitepages/detail.whtml?record_id=6334596&listing_type=O&name=Caverly&searchType=rid&city=&state=ON&searchRegion=&country=CA&combinedAddr=

To unsubscribe from SURVPC send a message to [EMAIL PROTECTED] with 
unsubscribe SURVPC in the body of the message.
Also, trim this footer from any quoted replies.

Reply via email to