1 Replies - 272 Views - Last Post: 18 December 2013 - 07:31 PM Rate Topic: -----

#1 salazar  Icon User is offline

  • D.I.C Addict

Reputation: 87
  • View blog
  • Posts: 539
  • Joined: 26-June 13

@ in batch script

Posted 18 December 2013 - 03:30 PM

I was reading a batch script and saw a few lines in which a command was preceded by a '@'.
@echo off



What is the '@' for?
Is This A Good Question/Topic? 0
  • +

Replies To: @ in batch script

#2 baavgai  Icon User is online

  • Dreaming Coder
  • member icon

Reputation: 5801
  • View blog
  • Posts: 12,638
  • Joined: 16-October 07

Re: @ in batch script

Posted 18 December 2013 - 07:31 PM

Strangely, @ actually IS echo off. That is, any command with @ in front of it won't echo. However, before the echo off command is processed, that command itself will echo. So, you put that @ in from that the echo off and then never use it again.
Was This Post Helpful? 3
  • +
  • -

Page 1 of 1