Sunday 23 June 2019

Batch: echo command: print information


‘echo’ command is used to print the value of variable, print text.

Syntax
echo %VARIABLE_NAME%

C:\>set firstName="Krishna"

C:\>set age=29

C:\>echo %firstName%
"Krishna"

C:\>echo %age%
29



Previous                                                 Next                                                 Home

No comments:

Post a Comment