Windows console

前端 未结 6 415
刺人心
刺人心 2020-12-01 21:53

I would like to set the date in a Windows batch file to 7 days ago from today. I would like to do this in the following format.



        
6条回答
  •  [愿得一人]
    2020-12-01 22:50

    AdamEstrada asked about subtracting dates. I had a tough time subtracting two Julian dates because of the SETLOCAL in the Julian functions. I did it by calling a function.

    call:sub_Julians !Julian! %Today_Julian%

    :sub_Julians

    set /a delta_dates=%~1-%~2

    ...

    goto:eof ::end:age_of_EPSdate

提交回复
热议问题