17

when i execute batch file on cmd screen the command in the batch appear on the screen example :-

batch file :- @echo off. command1 command2

when i execute it on cmd the following appear on screen :- c:\user > command1 c:\user >command2

i dont to appear anything when i execute batch file

joeqwerty
  • 109,901
  • 6
  • 81
  • 172
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54

2 Answers2

26

If I understand your question correctly, I think you want to separate commands on individual lines...

@echo off
command1
command2

Is this what you are looking for?

jftuga
  • 5,731
  • 4
  • 42
  • 51
10

Mmmmm....@echo off is what turns off the command echoing. If you want to see your batch file list off your commands as it runs them, don't use @echo off at the start of your script. Also, the @ sign at the start of the line makes just that line not echo. So you could use that to selectively hide the commands you didn't want to see.


--Christopher Karel

Christopher Karel
  • 6,582
  • 1
  • 28
  • 34