You can use redirection operators to redirect command input and output streams from the default locations to different locations.
www.microsoft.com