Take the Challenge ». The following examples show how you can store the output of the command with option and argument into a variable. In cmd, echo prints the argument as is. Echo command is also used frequently in bash shell scripts. Echo. In this note i am showing how to print the contents of Windows PATH environment variable from the Windows command prompt. Unable to assign the output from cmd.run in my Salt State. Commands are executed concurrently as a pipeline, with the standard output of each process piped to the standard input of the next. When you set a variable in the UI, that variable can be encrypted and set as secret. Apr 7, 2017 at 15:20 UTC. on It looks similar to this: LOGOFF @ STEVEN-PC @ Fri 04/07/2017 @ 10:58:51AM. Warning! Escape Characters. If we use the > redirection operator, the file is created if it does not exist. Nevermind, I could do it by using: set %PATH%=