Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch.nt    |    Fun with Windows NT batch files    |    68,980 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 67,511 of 68,980    |
|    dr.j.r.stockton@gmail.com to All    |
|    Re: Batch Script Yesterday date file for    |
|    20 Mar 20 07:23:46    |
      On Thursday, 19 March 2020 15:56:32 UTC, Zaidy036 wrote:       > On 3/18/2020 12:42 AM,       > asya...@gmail.com wrote:       >       > Dear All,       >       > i am new for batch script language.       > can anyone help me to get yesterday date,                            > A simple method would be to use SETX>       >       > If you reboot every morning make a batch       > running on boot that does:       >       > SETX _Yesterday=%_todayDate%       >       > SETX _todayDate= %Date%       >       >       >       > Day before first run manually SETX _todayDate=%Date%       > --       > Zaidy036                     Not reliable - to work, that means that the machine must be re-booted exactly       once every day, no more and no less; and that one considers the possibility of       post-midnight use.              Remember that rebooting may be forced by power failure, Windows updates       software failures, engineers, etc.; and watch out for the International Date       Line.              An improvement, perhaps a generally sufficient one, would be to alter       Yesterday only if the value of Today changes.              --        (c) John Stockton, near London, UK. Using Google Groups. |        Mail: J.R.""""""""@physics.org - or as Reply-To, if any. |              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca