windows - Why is no string output with 'echo %var%' after using 'set var = text' on command line? -



windows - Why is no string output with 'echo %var%' after using 'set var = text' on command line? -

i set variable in cmd on windows 8.1 set command, , tried echo it.

here example:

c:\users\logan>set var = text c:\users\logan>set var var = text c:\users\logan>echo %var% %var% c:\users\logan>

so there way forcefulness command prompt echo variable, not raw text?

you need bring closer text equal symbol :

set var=text echo %var% text

windows batch-file cmd

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -