Jump to content

X files copied...


Recommended Posts

A very simple fix if you want to get rid of the 'X files copied' message when you use the xcopy or copy command in your batch files, such as for installing Winzip:

When running the xcopy or copy command, place the text " >nul" (including the space) after the command. ">" is used to route all program output to a file, so you can create a log by using " >install.log" after a batch file. By using "nul" after this, it routes all program output to, well, nowhere, which prevents it from being displayed in the cmd window, meaning it gets rid of messages that "@echo off" doesn't :)

On a side note, if you want to create a full install.log style file, use " >>%systemdrive%\install.log" instead, as " >" overwrites the file, whilst " >>" appends to the file, adding onto the bottom of it :rolleyes:

Link to comment
Share on other sites


Wouldn't the @echo off command also achieve this..

Nope, even with @echo off, if you use the copy commands, it still shows the X files copied message.

place a >nul after the copy command like this:

ECHO.
ECHO Copying WGET v1.9 beta with SSL support...
copy %systemdrive%\install\wget\*.* %systemdrive%\windows\system32 >nul

That's right, I should've really included an example :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...