🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7636

Re: batch question

#7636
From: Thomas Kratz
Date: Thu, 21 Jan 1993 16:02
26 lines
1345 bytes
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
*****************************************************************************
Technical Details
Message-ID: <RRZ04UH@minnie.zdv.uni-mainz.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!news.th-darmstadt.de!minnie!orville!kratz
References: <1993Jan20.122341.11404@vax.oxford.ac.uk>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!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