Batch code to write System turn on time in txt file -


i need batch code write system turn on time in txt file. means need write time @ windows turned on txt file.

try this:

@echo off  >"c:\path\to\startup.txt" (for /f "tokens=3,4" %%a in (   'net statistics workstation ^| find "since"' ) (   echo %%a %%b )) 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -