What this does is turn the part between parentheses into a "literal" uninterpreted string that is passed to the command interpreter of the newly started process, which then in turn does interpret it.
So the interpretation of the parenthesis and redirection is delayed, or deferred. A safer way to redirect START ed commands' output would be to create and run a "wrapper" batch file that handles the redirection. The batch file would look like this:. To get rid of screen output sent directly to the Console, either run the program in a separate window using the START command , or clear the screen immediately afterwards CLS.
Nothing is impossible, not even redirecting the Console output. The commands test. Be careful when using workarounds like these, they may be broken in future or even past Windows versions. In Windows, nul is a null device, which means the output is just flushed and you don't see it. Thus, in this case, all output is being flushed. Thanks for clearing that up — MistyD. Add a comment.
Active Oldest Votes. Improve this answer. Chris D 87 1 1 silver badge 7 7 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Senior Member joined:July 16, posts votes: 1. Or add it to the end of the batch file line executing your script. The redirect char is to redirect normal output going to the monitor somewhere else Won't take much to try it HI The problem got solve.
No,rediretion of output solved the problem. In msg :6 you say: Redirection of the output only suppressing the output text but still dos window is coming up. DIR SomeFile. PING Please enable JavaScript to view the comments powered by Disqus.
0コメント