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,657 of 68,980   
   Kenny McCormack to fake@ddress.no   
   Re: System Time   
   06 Nov 20 22:27:10   
   
   From: gazelle@shell.xmission.com   
      
   In article ,   
   Robert Roland   wrote:   
   ...   
   >If we simply use our own computer as a remote server, it seems to   
   >work:   
   >   
   >echo Apparent time is %date% %time%   
   >   
   >for /F "tokens=6,7" %%n in ('NET TIME \\%computername%^|find "Current   
   >time"') do set realdate=%%n&set realtime=%%o   
      
   You can also use: net time \\127.0.0.1   
      
   to save the hassle of making sure that "computername" is meaningfully set.   
      
   --   
   "Everything Roy (aka, AU8YOG) touches turns to crap."   
       --citizens of alt.obituaries--   
      
   --- 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