fix xcopy to shared folder issue and other issues