Bottled Posted September 1, 2003 Share Posted September 1, 2003 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 Link to comment Share on other sites More sharing options...
Sunil Posted September 1, 2003 Share Posted September 1, 2003 Wouldn't the @echo off command also achieve this..Sunil Link to comment Share on other sites More sharing options...
edg21 Posted September 1, 2003 Share Posted September 1, 2003 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 Link to comment Share on other sites More sharing options...
Bottled Posted September 1, 2003 Author Share Posted September 1, 2003 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 >nulThat's right, I should've really included an example Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now