XCopy or MOVE do not work when a WCF Service runs a batch File. Why?
问题 I have faced a case when the same batch file works differently from command line and when it is fired from a WCF service hosted on IIS. The difference is in XCOPY command. when I am running the batch file normally than XCOPY moves all data I need XCOPY "C:\from" "C:\to" /K /R /E /I /S /C /H /G /X /Y but when it runs from the WCF service nothing is copied. for running the batch from my service I am using the following code Executing Batch File in C# whith some little modifications. My