AT2k Design BBS Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to BAT Magic  <--  <--- Return to Home Page
   Local Database  BAT Magic   [128 / 250] RSS
 From   To   Subject   Date/Time 
Message   Rudy Lacchin    MGA   If DATE is..then 2/3   September 23, 1995
 4:23 PM *  


Hi MGA,

> I'm looking for help with a small batch file to run under DOS 6.22
> that will type an ansi file on a certain date i.e.
> IF DATE = "20/09/95" THEN TYPE HELLO.ANS

Somthing like this should do the trick:-

  echo. | date | find "20/09/1995" >tempfile
  copy tempfile+,, >nul
  if exist tempfile type hello.ans

You may need to change the date string so that it agrees with the format
which DATE produces on your machine.  You may also like to add this line
to the end to tidy up:-

  if exist tempfile del tempfile

Regards,
Rudy.

--- GoldED/386 2.50.Beta6+
 * Origin: White Light (240:400/19)
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to BAT Magic  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0195 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.1.241108