Since we have to guess (you should have described what "not working" means in this case, along with any error messages you received). I'll guess that it's because tshark.exe isn't a shell and doesn't handle output redirection. If my guess is correct, then try executing a shell instead, and telling the shell to run tshark for you and redirect its output.
...roboticusIn reply to Re: System command is giving error if we redirect output to file
by roboticus
in thread System command is giving error if we redirect output to file
by rameshgsl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |