Search found 774 matches

by einstein1969
28 Jun 2012 10:50
Forum: DOS Batch Forum
Topic: I want to make StartProcess
Replies: 2
Views: 2087

I want to make StartProcess

hi, I need to realize a function for start a process with more controll than "start" I found that is possible via vbscript with WMI control. I want realize with your help a generic procedure , an wrapper?, for start a process. the process be started with a priority and a parameter to hide ...
by einstein1969
28 Jun 2012 10:05
Forum: DOS Batch Forum
Topic: pass data through processes with less latency
Replies: 2
Views: 1296

Re: pass data through processes with less latency

I'm asking the experts.

It seems to me that the method of redirection is not the solution. That the only method is through the use of pipes.

You agree with my thesis? Or you have a workaround?
by einstein1969
22 Jun 2012 00:30
Forum: DOS Batch Forum
Topic: Why this code don't work?
Replies: 8
Views: 2228

Re: Why this code don't work?

It doesn't work here fawers, either. Dunno why - something to do with the realtime session. @OP This does work though. What more do you want it to do? typeperf "\Processor(_Total)\% Processor Time"|more +2 >>file.txt Yes, this work but I have already open a 3D for the resync problem/laten...
by einstein1969
21 Jun 2012 17:16
Forum: DOS Batch Forum
Topic: DOS and VBScript - A Better Interaction?
Replies: 18
Views: 5658

Re: DOS and VBScript - A Better Interaction?

I only use the best: assembly language! More than 25 years ago I wrote several small programs as auxiliary commands for Batch files. They were really small files, less than 400 bytes the majority. For example, below is my GetKey program that read a key from keyboard and return its Ascii code via ER...
by einstein1969
21 Jun 2012 17:08
Forum: DOS Batch Forum
Topic: Why this code don't work?
Replies: 8
Views: 2228

Re: Why this code don't work?

there is no output with

Code: Select all

for /f "skip=2 delims=" %a in ('typeperf "\Processore(_Total)\% Tempo processore"') do @echo %a


is blocked...
by einstein1969
21 Jun 2012 16:35
Forum: DOS Batch Forum
Topic: Why this code don't work?
Replies: 8
Views: 2228

Re: Why this code don't work?

The output i want is the output of typeperf when lanched in a command prompt window open a windows and type (english language) typeperf "\Processor(_Total)\% Processor Time" The output (mine is italian) "(PDH-CSV 4.0)","\\PC-XP-MASTER\processore(_Total)\% Tempo processore&qu...
by einstein1969
21 Jun 2012 15:27
Forum: DOS Batch Forum
Topic: Why this code don't work?
Replies: 8
Views: 2228

Why this code don't work?

Hi, Why this code don't work? @echo off ping -n 2 127.0.0.1 > nul setlocal enabledelayedexpansion if "%1" EQU "resto" goto :resto start "test 1" /LOW cmd /c "typeperf "\Disco fisico(_Total)\%% Tempo disco" "\Processore(_Total)\%% Tempo processore&quo...
by einstein1969
21 Jun 2012 08:36
Forum: DOS Batch Forum
Topic: pass data through processes with less latency
Replies: 2
Views: 1296

Re: pass data through processes with less latency

Sorry my fault...

the latency is minor.

The timestamp on typeperf is on initial time of sampling. But the problem remains
by einstein1969
15 Jun 2012 14:21
Forum: DOS Batch Forum
Topic: pass data through processes with less latency
Replies: 2
Views: 1296

pass data through processes with less latency

Hi, my program is controlling a few performance counter and then on alarm execute an action. I realized it in batch. The monitor portion use typeperf. I tried the otpion with "Performance Log and Alert" on XP sp2 but the alert are send with little control. I initially tried with a "lo...