D
djc
I previously mixed up 2 different issues in a post... The one issue was
resolved, which I'm greatful for. Here is the other question I had that I
accidentally mixed in that post.
Example command:
FOR /F "skip=3" %i IN ('net view') do pslist %i | findstr "processname"
Above command works fine. However if I tried this:
FOR %i IN ('net view | findstr /i "\\"') do pslist %i | findstr
"processname"
I get an error stating that '|' was unexpected. The '|' its refering to is
the one right after the 'IN' part of the FOR command. Does this mean you
cannot
pipe commands together there? or am I just doing it wrong?
any input is appreciated. thanks.
resolved, which I'm greatful for. Here is the other question I had that I
accidentally mixed in that post.
Example command:
FOR /F "skip=3" %i IN ('net view') do pslist %i | findstr "processname"
Above command works fine. However if I tried this:
FOR %i IN ('net view | findstr /i "\\"') do pslist %i | findstr
"processname"
I get an error stating that '|' was unexpected. The '|' its refering to is
the one right after the 'IN' part of the FOR command. Does this mean you
cannot
pipe commands together there? or am I just doing it wrong?
any input is appreciated. thanks.