How do I suppress the "a duplicate file name exists, or the file cannot be found" message?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
eax22
Posts: 13
Joined: 15 Apr 2017 15:02

How do I suppress the "a duplicate file name exists, or the file cannot be found" message?

#1 Post by eax22 » 16 Apr 2017 16:08

When I move many files, sometimes the message "a duplicate file name exists, or the file
cannot be found" appears, even though I have added >nul. Is there a way of preventing that message from showing up, except making sure that there are no duplicate files and that files can be found?

ShadowThief
Expert
Posts: 1166
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: How do I suppress the "a duplicate file name exists, or the file cannot be found" message?

#2 Post by ShadowThief » 16 Apr 2017 16:54

Error messages are on their own stream and need to be suppressed with

Code: Select all

2>nul

Post Reply