perfmon and batchfile

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a working batch file that takes one argument and makes a file with it.
it works fine from the command line however in perfmon it does not output the
lines, In the debug process I know that the arguments are handed down, and
that they can be sent out via a msg statement, however it does not work in an
echo statement or with a >> addition.
the first file only has one line:

call createerror.bat %1

the second file (createrror.bat) looks like this:

@echo send " %1 \m \m. \m" >> c:\senderror.txt

and senderror.txt is not modified when called from perfmon, it is fine
through dos prompt.
 
In microsoft.public.win2000.cmdprompt.admin
=?Utf-8?B?Zml0Y2hlcg==?= said:
I have a working batch file that takes one argument and makes a
file with it. it works fine from the command line however in
perfmon it does not output the lines, In the debug process I
know that the arguments are handed down, and that they can be
sent out via a msg statement, however it does not work in an
echo statement or with a >> addition. the first file only has
one line:

call createerror.bat %1

the second file (createrror.bat) looks like this:

@echo send " %1 \m \m. \m" >> c:\senderror.txt

and senderror.txt is not modified when called from perfmon, it
is fine through dos prompt.

Might try using FQP (fully qualified paths for batch and send).
Otherwise, no guesses.
 
Back
Top