xcopy is not recognized as an internal or external command, operable program or batch file

前端 未结 8 1389
温柔的废话
温柔的废话 2021-01-03 18:08

I have a problem using \'xcopy\' command.

I\'m building a C# project with msbuild. At the end of the build, a batch file is called to copy my assemblies from Debug/R

相关标签:
8条回答
  • 2021-01-03 18:56

    I also had a problem with xcopy (same error message) - with a very simple batch program that I use to backup files to a removable drive. Have been using that program for at least 5 years with never a problem. Then yesterday xcopy is unknown to Win7. The replacement of xcopy with %systemroot%\System32\xcopy at each instance solved the problem. Very strange.

    0 讨论(0)
  • 2021-01-03 18:57

    Go to environment variable and correct PATh including ; in last. It will work, this is not at all related to OS or Technology. It's working for me, Not even need to restart OS, Just open new command prompt.

    0 讨论(0)
提交回复
热议问题