Skip to content

Commit

Permalink
Mute copy on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ccmywish committed Dec 14, 2024
1 parent 71d6c68 commit 22c2bc6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/framework/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1278,8 +1278,11 @@ chsrc_backup (const char *path)
}
else if (xy_on_windows)
{
/* /Y 表示覆盖 */
cmd = xy_strjoin (5, "copy /Y ", path, " ", path, ".bak" );
/**
* @note /Y 表示覆盖
* @note 默认情况下会输出一个 "已复制 1个文件"
*/
cmd = xy_strjoin (5, "copy /Y ", path, " ", path, ".bak 1>nul");
}
else
{
Expand Down

0 comments on commit 22c2bc6

Please sign in to comment.