perfmon and batchfile

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.
 
M

Mark V

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top