home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: sparky!uunet!math.fu-berlin.de!news.th-darmstadt.de!minnie!orville!kratz
- From: kratz@orville (Thomas Kratz)
- Subject: Re: batch question
- Message-ID: <RRZ04UH@minnie.zdv.uni-mainz.de>
- Sender: usenet@minnie.zdv.uni-mainz.de (USENET News System)
- Nntp-Posting-Host: orville
- Organization: Johannes Gutenberg Universitaet Mainz
- X-Newsreader: Tin 1.1 PL5
- References: <1993Jan20.122341.11404@vax.oxford.ac.uk>
- Date: Thu, 21 Jan 1993 16:02:09 GMT
- Lines: 26
-
- There is a simple way by getting the date to a batch-file
- bye writing a small program, that passes an errorlevel to
- DOS, which can be checked with:
-
- if errorlevel <value> goto <label>
- .
- .
- :label
- <action>
-
- for simply getting the day of the week this program is only
- 6 (!) bytes long and can be compiled via debug.com
-
- MOV ah,2a
- INT 21
- MOV ah,4c
- INT 21
-
- for other purposes adjusting this should not be very difficult.
- If anybody has difficulties with this, please contact me via email.
- --
- *****************************************************************************
- "Even a stopped clock gives the right time twice a day" from WITHNAIL & I
- Thomas Kratz
- Beratungsstelle ZDV-Uni-Mainz INTERNET: kratz@goofy.zdv.uni-mainz.de
- *****************************************************************************
-