Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
1  
Remove the dot. –  Dennis Williamson Oct 4 '10 at 17:11

2 Answers 2

up vote 4 down vote accepted

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?

share|improve this answer

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.