Pergunta

I need to write a robocopy command so that I can take the code (directory structure included) and copy it to another location. However, I don't need all the code. only the web.config files. I have the basic line, I'm simply unsure of what to add on the end so that it's only the specific files.

Guessing it's here but I can't decipher it.

Foi útil?

Solução

To only get web.config files, use

ROBOCOPY <your parameters> web.config

That 'web.config' is your file mask. Often, it will be something like '*.txt', but yours is so specific you won't need any wildcards.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top