I have a batch file that I use to copy a folder and its contents to a new location, it also creates a folder name based on date and time (and this works):
SET TODAY=%DATE:/=-% SET NOW=%TIME::=-% XCOPY /S /Y "C:\BuildAgent\temp\buildTmp" "C:\Automation Results\%TODAY%_%NOW%\"
I added a new configuration step to my City City team to include this batch file. The build step is the command line - Custom Script:

But this adversely affects the requirements of the TS agent, and I can not start my TC builds:

This problem seems to be related to TS Implicit requirements:
http://confluence.jetbrains.com/display/TCD8/Agent+Requirements
βImplicit requirements Any reference (name in% -signs) to an unknown parameter is considered anβ implicit requirement. βThis means that the assembly will work only on the agent that provides the named parameters. Otherwise, the parameter must be accessible for the assembly configuration, defining it at the build configuration level or project level. "
How can I get around this TC conflict with the% symbol that I need in my batch file?
teamcity
Benny meade
source share