home bbs files messages ]

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,348 of 68,980   
   dr.j.r.stockton@gmail.com to All   
   Making a backdated file, or backdating a   
   05 Dec 18 14:35:39   
   
   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?   
      
   --   
     (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