batch file - How do I re-write this DOS command without using the PIPE symbol? -


i use command verify if particular schedule task exists:

schtasks.exe | findstr /i /c:taskname 

i need write not use pipe "|" tried this:

schtasks.exe /query /tn taskname 

but works windows 2008, not windows 2003 machines since /tn option not available in 2003.

any ideas? thank you!

heh, yeah.

schtasks /query >tmpfile && findstr /i /c:"taskname" tmpfile 

doesn't use pipe. :>


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -