Want to stop the output of the move command being printed on the screen

  • Hi All,

    I have a batch script that accepts parameters like input, output directories and another to accept the file name.

    I have a move command command being executed and it prints the directory path with the file name on the screen.

    MOVE %input% %output%

    Is there a possibility to stop the output being printed on the screen.

    Thanks,

    Victor

  • You can use command line redirection to hide this.

    Try this to hide everything except errors:

    MOVE %input% %output% 1>nul

    If you want everything including errors hidden:

    MOVE %input% %output% >nul

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply