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   [144 / 250] RSS
 From   To   Subject   Date/Time 
Message   Captain Fantastic    mga   If DATE is..then :-)   October 18, 1995
 7:27 PM *  

Re: If DATE is..then :-)

> Hi All,
> I've been amazed at what you bunch can do with batch files so I was
> wondering if you'd care to amaze me some more :-)
> 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
> Any suggestions welcome!
> TIA, Mike

Give this a try:


@Echo Off

Echo Rem This batch file is executed      >  1.Bat
Echo Rem when your search is succesfull.  >> 1.Bat
Echo Echo Test Was Succesfull!            >> 1.Bat
Echo Type Hello.Ans

Echo Rem This batch file is executed      >  0.Bat
Echo Rem when your search fails           >> 0.Bat
Echo Echo Test Failed.                    >> 0.Bat

Echo. | Date | Find /I "Current" > Test.Fil
Type Test.Fil | Find /C "12-25-1995" > RunMe.Bat

Call RunMe.Bat

If Exist 0.Bat     Del 0.Bat
If Exist 1.Bat     Del 1.Bat
If Exist Test.Fil  Del Test.Fil
If Exist RumMe.Bat Del RumMe.Bat
  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.0136 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