I`m trying to copy files(almost 9GB) using windows action or batch files, but failed.
The batch files:
@ECHO ON
::Copies files to dekstop of current user *For Windows 7
md e:\vmmachine
xcopy "\\path\file" "e:\vmmachine" /O /X /E /H /K
exit
The error message as below:
Mon, 02 Oct 2017 20:15:36 Sending task status, cmd line -coreandip=LandeskCoreServer -taskid=687 -retcode=229392258 -pkgid=176
Mon, 02 Oct 2017 20:15:36 ExpandEnvironmentVariables Result:
Mon, 02 Oct 2017 20:15:36 Batch file Client Thread
Mon, 02 Oct 2017 20:15:36 PackagePath: [http://LandeskCoreServer/Scripts/Windows/CopyFilesforJames.bat]
Mon, 02 Oct 2017 20:17:40
Mon, 02 Oct 2017 20:17:40 Bat file output :
C:\Program Files (x86)\LANDesk\LDClient\sdmcache\Scripts\Windows>call "CopyFilesforJames.bat"
C:\Program Files (x86)\LANDesk\LDClient\sdmcache\Scripts\Windows>md D:\vmmachine
C:\Program Files (x86)\LANDesk\LDClient\sdmcache\Scripts\Windows>xcopy "\\path\file" /O /X /E /H /K
0 File(s) copied
C:\Program Files (x86)\LANDesk\LDClient\sdmcache\Scripts\Windows>exit
Mon, 02 Oct 2017 20:17:40 Installation result 8DAC4002
Mon, 02 Oct 2017 20:17:40 RunPackageInstall: stop on returncode=8dac4002 of package=CopyFilesForJames
Mon, 02 Oct 2017 20:17:40 processing of package is complete, result -1918091262 (0x8dac4002 - code 16386)
My questions are :
1 Is there any wrong in my batch file?
2 How large files we can copy to the client computer?
3 How to set the batch file return code?