Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Problem using literal percent (https://www.kinook.com/Forum/showthread.php?t=5347)

rnauman 05-12-2015 10:17 AM

Problem using literal percent
 
I have a batch file task setup to run an executable that accepts a URL as a parameter. I'm now trying to update the url to include %20 but am having problems.

My command:

Code:

"%RepositoryPath%\Dependencies\PhantomJS\phantomjs.exe" --ignore-ssl-errors=true "vendor\qunit\runner.js"  "https://example.com/runner.aspx?jqv=%jqueryVersion%&distro=%LOOP_VALUE%&module=codebooks%%20history" %qunitTimeout% >> "%BuildPath%\qunit.txt"
Transformed into:

Code:

"D:\Build\repository\Dependencies\PhantomJS\phantomjs.exe" --ignore-ssl-errors=true "vendor\qunit\runner.js"  "https://example.com/runner.aspx?jqv=1.9.1&distro=nojqd&module=codebooks0history"
Have I overlooked a syntax nuance?

kinook 05-12-2015 06:31 PM

The percent sign will need to be escaped once for Visual Build (%%) and again for the batch file (%%%%).

http://www.kinook.com/VisBuildPro/Ma...ecialchars.htm

http://www.robvanderwoude.com/escapechars.php


All times are GMT -5. The time now is 05:54 PM.


Copyright © 1999-2023 Kinook Software, Inc.