Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Suppress output for windows move command

Here is simple move command that moves all the text files to the folder TextFiles

Move *.txt TextFiles

I am getting outputs like the file was moved. I am going to use this command in a batch file. Any way to suppress showing the user that a file was moved ?

like image 907
lostpacket Avatar asked May 29 '13 14:05

lostpacket


People also ask

What is Move command in CMD?

The move command allows users to transfer files or directories from one directory to another, or from one drive to another.

Which command is used for move?

The mv command moves files and directories from one directory to another or renames a file or directory.


1 Answers

Move *.txt TextFiles >nul

>nul sends the standard output to oblivion. 2>nul sends error messages to the same place.

like image 109
Magoo Avatar answered Sep 19 '22 12:09

Magoo