I want to copy all files with the name ConnectionString. Is this possible?

copy /Y "$(SolutionDir)\MyProj\Configs\[ConnectionStrings]*" "$(SolutionDir)\MyProj.Daemon\Configs\
有帮助吗?

解决方案

How about this:

 copy /Y "$(SolutionDir)\MyProj\Configs\*ConnectionStrings*" "$(SolutionDir)\MyProj.Daemon\Configs\

You can do wildcards on both ends, or on one end.

*.ext
string.*
*string*
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top