tag:help.appveyor.com,2012-11-13:/discussions/problems/2863-how-to-escape-spaces-in-a-commandAppVeyor: Discussion 2018-08-25T02:27:16Ztag:help.appveyor.com,2012-11-13:Comment/377305672015-08-22T21:54:00Z2015-08-22T21:54:01ZHow to escape spaces in a command?<div><p>Using single quotes worked.</p></div>eliteraspberriestag:help.appveyor.com,2012-11-13:Comment/377305672018-03-05T15:49:19Z2018-03-05T15:49:19ZHow to escape spaces in a command?<div><p>Can you expand on where the single quotes were placed?</p>
<p>Im having a nightmare trying to get secure-file to work when the file in question has a space in its name</p>
<p>EAZFUSCATOR_LICENSE_NAME_1: 'License Copy'</p>
<ul>
<li>tools\secure-file -decrypt 'tools\%EAZFUSCATOR_LICENSE_NAME_1%.txt.enc' -out '=tools\%EAZFUSCATOR_LICENSE_NAME_1%.txt' -secret %PASSWORD%</li>
</ul></div>matt_mckinstrytag:help.appveyor.com,2012-11-13:Comment/377305672018-03-07T03:04:28Z2018-03-07T03:04:28ZHow to escape spaces in a command?<div><p>1) try removing quotes in environment variable definition:</p>
<pre>
<code>EAZFUSCATOR_LICENSE_NAME_1: License Copy</code>
</pre>
<p>2) Replace single quotes with double quotes in the command:</p>
<pre>
<code>- 'tools\secure-file -decrypt "tools\%EAZFUSCATOR_LICENSE_NAME_1%.txt.enc" -out "tools\%EAZFUSCATOR_LICENSE_NAME_1%.txt" -secret %PASSWORD%'</code>
</pre></div>Feodor Fitsner