Get time running from the Browser
Posted: 13 Feb 2020 08:01
Is it possible to reach the runtime of the application?
I have no idea how to do that!
I have no idea how to do that!
A Forum all about DOS Batch
https://www.dostips.com/forum/
Code: Select all
@echo off
>"tasklist.txt" tasklist /v
type "tasklist.txt"
Code: Select all
wmic process where caption='notepad.exe' get creationdate /value
Code: Select all
CreationDate=20200213231040.876129+060
Code: Select all
@echo off &setlocal
set "proc=notepad"
for /f %%i in (
'powershell -nop -ep Bypass -c "$ErrorActionPreference='SilentlyContinue';[string](New-TimeSpan (gps %proc%|foreach{$_.StartTime}|measure -minimum).minimum)"'
) do echo %%i