If you execute this command then you get an error I guess?
Correct. The error message is "No valid counters."
Code: Select all
C:\>typeperf "\ICMP\Received Timestamp/sec" -sc 1
Fehler: Keine gültigen Leistungsindikatoren
C:\>
Moderator: DosItHelp
If you execute this command then you get an error I guess?
Code: Select all
C:\>typeperf "\ICMP\Received Timestamp/sec" -sc 1
Fehler: Keine gültigen Leistungsindikatoren
C:\>
I wonder why MS didn't put an ISO date/time string in CMD.
aGerman wrote:I wonder why MS didn't put an ISO date/time string in CMD.
Easy enough since you will seldom find an obsolete Windows version that is not able to access WMI. Thus, your very first answer in this thread should always work nowadays.
Ed Dyreen wrote:dateTime object does exist in java and probably javascript too and both do not require .NET framework.
I'm wondering - does WMIC require admin access?
Can they be leveraged into a batch script in some way, which a regular user account can run?
aGerman wrote:At work (where I don't have admin authorization) I'm able to access WMIC
Can they be leveraged into a batch script in some way, which a regular user account can run?
Why not? Remember Daves getTimestamp.bat
viewtopic.php?p=38387#p38387
jscript - which someone said recently is Microsoft's version of javascript
Aacini wrote:I just wanted to remind you that some time ago I wrote a couple auxiliary commands, called StdTime.exe and StdDate.exe, that were designed to get current date and time independently from locale, and to get the same data from files. These .exe files are just 3072 bytes long...
Antonio
Code: Select all
c:\>stddate
YYYY=2015
MM=07
DD=12
c:\>stdtime
Hour=07
Min=21
Sec=31
MSec=869
Do other locales see the same terms?
aGerman wrote:Do other locales see the same terms?
"YYYY=" and the like are string literals in Antonio's tools. Thus, the output doesn't depend on locales.
Code: Select all
C:\Aacini_tools>stddate
YYYY=2015
MM=07
DD=12
C:\Aacini_tools>stdtime
Hour=12
Min=02
Sec=05
MSec=702
C:\Aacini_tools>
Aacini's documentation says that the input uses the locale format
Code: Select all
C:\Aacini_tools>stddate 31.07.2015
YYYY=2015
MM=07
DD=31
C:\Aacini_tools>
aGerman wrote:Aacini's documentation says that the input uses the locale format
Yes, the input does. In Germany the date format is DD.MM.YYYY