title: command 'exec master..xp_cmdshell' does not creating file
body: <p>I'm not getting success with this command</p>
  
  <pre><code>DECLARE @cmd sysname, @var sysname
  SET @var = 'Hello world'
  SET @cmd = 'echo ' + @var + ' &gt; C:\var_out.txt'
  EXEC master..xp_cmdshell @cmd
  </code></pre>
  
  <p>Already tried several examples, but it did not work. 
  The command runs but the file simply does not create</p>