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 40,554 of 42,547    |
|    foxidrive to Fairfax    |
|    Re: Changing date output format to yyyy.    |
|    08 Nov 12 22:37:07    |
      From: not@this.address.invalid              On 08/11/2012 22:21, Fairfax wrote:              >>>> echo %%stamp%% is set to %stamp% (yyyy-mm-dd-ddd_hh-mm-ss)       >>       >>       >> Firstly, as your machine is locked down the admin might also have locked       wmic and WSH.       >> Can you run the batch file above and get a meaningful stamp in the last       line?       >       > I can run the batch file, I just don't get good results.              What result do you get when you run the batch that I snipped above?       You will get this format if WMIC is not locked down.              %stamp% is set to 2012-11-08-Thu_22-35-01 (yyyy-mm-dd-ddd_hh-mm-ss)              >> If so then you can use this as the last line, and replace %date% with       %stamp% in your code (which you can       >> add following this line).       >>       >> set stamp=%year%.%month%.%day%.%ddd%       >       > Kewl. Will give it a try. Thanks!              Let us know how it goes - there is always powershell which might/might not be       locked down.                            --       foxi              --- 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