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,350 of 68,980    |
|    MikeS to dr.j.r.stockton@gmail.com    |
|    Re: Making a backdated file, or backdati    |
|    07 Dec 18 19:25:18    |
      From: MikeS@fred.com              On 05/12/2018 22:35, dr.j.r.stockton@gmail.com wrote:       > Occasionally I want to make a zero-length file with a chosen       > non-today date & time, to use to give a "paragraph marker"       > in DIR /O:D output. I have plenty of zero-byte files to       > copy, so re-dating and renaming would suffice. I am using       > Windows 10 pro, 64-bit. To avoid any possibility of the       > date changing at the beginning/end of Summer Time, I would       > best like the time part to be 12 noon, GMT/UTC or LCT (Local       > Civil Time); or at least 61 minutes away from midnight.       >       > Can this be done (reasonably briefly?) in Batch? Or in       > JScript/VBScript? I have Borland Pascal code, source &       > compiled; but it is compiled to 16-bit code; I might be       > able to run a Delphi 3 command-line compiler, but it would       > not necessarily have the required library routines. Or,       > come to think of it, can Windows proper do what I want?       >       >       > I have written (the E: drive is a 'new' 1TB HDD)       >       > copy /y nul e:%date%.LOG > nul       >       > and if I put that in a boot-time file then folder e:\       > would soon have zero-length files for all the dates I       > might need in future. In practice, I think I'd use a       > fixed dedicated folder on the C: drive. But that       > method is not at all elegant.       >       >       >       >       > OT: Is there hidden away in Google Groups some substitute       > for a '.SIG' file?       >       I use a very (very) old program called Rname-it which amazingly still       works fine with 64 bit Windows 10. It does what you want (from its       options button) and far more as well. If you find a copy it is much       easier than writing something yourself.              --- 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