home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 42,433 of 42,547   
   Kerr-Mudd, John to All   
   Re: minimal Easter 'calculator' for DOS   
   10 Jul 25 22:11:38   
   
   XPost: alt.lang.asm, comp.os.msdos.programmer   
   From: admin@127.0.0.1   
      
   On Fri, 4 Apr 2025 19:35:59 +0100, "Kerr-Mudd, John"    
   wrote:   
      
   > feh: I put up code I've been poring over for days, then next day   
   > find a shorter way:   
   >   
   > (my ref: minease7, anyone following this should name it mineast2 if   
   > using the batch below)   
      
   Apologies. I'm an asshole. I just wanted to spam the ng.   
   I love spamming. Here is more batch code to spam the newsgroup by.   
   It's what I do as a troll.   
      
    @echo off   
    :: CleverShowEast.bat - a twist on your original   
    :: Usage: CleverShowEast yyyy   
      
    :: Check argument by jumping to label with dynamic name   
    CALL :CHECKARG %1   
    GOTO :EOF   
      
    :CHECKARG   
    :: If %1 is empty, jump to usage   
    IF "%~1"=="" GOTO USAGE   
    :: Get day and month via external tool   
    FOR /F "tokens=*" %%i IN ('minEast %~1') DO SET DM=%%i   
    :: Compose full date output   
    ECHO %DM% %~1   
    GOTO :EOF   
      
    :USAGE   
    ECHO Usage: %~nx0 yyyy   
    ECHO where yyyy is in range 1900-2099   
    ECHO Output is Day Month Year   
    GOTO :EOF   
      
      
      
   --   
   Bah, and indeed Humbug.   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca