Dos SET command advanced /A features resource
        Posted  
        
            by 
                user66001
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user66001
        
        
        
        Published on 2012-06-26T20:38:07Z
        Indexed on 
            2012/06/26
            21:16 UTC
        
        
        Read the original article
        Hit count: 319
        
Have done quite a bit of searching for a guide (of any substance) for the above to no avail. Can anyone refer me to one?
In the present tense however, I am trying to understand the below code example, which returns a two digit representation of the month, that corresponds to the 3 character month name set in v:
    SET v=May
    SET map=Jan-01;Feb-02;Mar-03;Apr-04;May-05;Jun-06;Jul-07;Aug-08;Sep-09;Oct-10;Nov-11;Dec-12
    CALL SET v=%%map:*%v%-=%%
    SET v=%v:;=&rem.%
    ECHO.%v%
        © Stack Overflow or respective owner