Sunday, 23 June 2019

Batch: @symbol


When you want to print the command output without displaying the command, you can use @symbol.

Let me explain with an example.

Hello.bat
ver
vol


When you ran hello.bat script, command is displayed as part of the output.


Note
If you run the command with (or) without @symbol from command prompt, then there is not difference in the output.


C:\>ver

Microsoft Windows [Version 10.0.16299.547]

C:\>@ver

Microsoft Windows [Version 10.0.16299.547]


Previous                                                 Next                                                 Home

No comments:

Post a Comment