Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

Guest Agent Pass Variable with spaces

$
0
0

I am hoping someone can confirm what I am suspecting.  It appears you cannot pass a variable with spaces in it to Guest agent to run a batch.

 

I have a build profile in vCAC 6.1.1, in which the variable has a space in it.  The space is lost when the script runs even when quoted.  Variablewithspaces = thiswillbreak after spaces

 

c:\somescripttoechotoafile.cmd "{Variablewithspaces}"


I am simply echoing into a file to see what happens, thiswillbreak is all that is written to the test file.  Anyone ran into this before?

 

Sharpton


Viewing all articles
Browse latest Browse all 9859

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>