?
Solved

Why is an "@" used in batch files ?

Posted on 2009-02-11
2
Medium Priority
?
188 Views
Last Modified: 2012-05-06
please advise
0
Comment
Question by:itbabe
  • 2
2 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 2000 total points
ID: 23610905
@ temporarily turns the echo off...which hides the output of normal commands during processing.
Which is why you use them both on the first line:

@echo off

so that command is hidden as well..
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 23610916
You could also use

@dir c:\ > c:\dirlist.txt
@type dirlist.txt|find /i "data"
@for %%a in (c:\dirlist.txt) do echo %%a

but the foremost echo off, eliminates the need to precede each line with @
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month15 days, 12 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question