home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / msdos / programm / 12300 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.3 KB  |  40 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!math.fu-berlin.de!news.th-darmstadt.de!minnie!orville!kratz
  3. From: kratz@orville (Thomas Kratz)
  4. Subject: Re: batch question
  5. Message-ID: <RRZ04UH@minnie.zdv.uni-mainz.de>
  6. Sender: usenet@minnie.zdv.uni-mainz.de (USENET News System)
  7. Nntp-Posting-Host: orville
  8. Organization: Johannes Gutenberg Universitaet Mainz
  9. X-Newsreader: Tin 1.1 PL5
  10. References: <1993Jan20.122341.11404@vax.oxford.ac.uk>
  11. Date: Thu, 21 Jan 1993 16:02:09 GMT
  12. Lines: 26
  13.  
  14. There is a simple way by getting the date to a batch-file
  15. bye writing a small program, that passes an errorlevel to
  16. DOS, which can be checked with:
  17.  
  18.   if errorlevel <value> goto <label>
  19. .
  20. .
  21. :label
  22.  <action>
  23.  
  24. for simply getting the day of the week this program is only
  25. 6 (!) bytes long and can be compiled via debug.com
  26.  
  27. MOV ah,2a
  28. INT 21
  29. MOV ah,4c
  30. INT 21
  31.  
  32. for other purposes adjusting this should not be very difficult.
  33. If anybody has difficulties with this, please contact me via email.
  34. --
  35. *****************************************************************************
  36. "Even a stopped clock gives the right time twice a day"     from WITHNAIL & I
  37. Thomas Kratz
  38. Beratungsstelle ZDV-Uni-Mainz          INTERNET: kratz@goofy.zdv.uni-mainz.de
  39. *****************************************************************************
  40.