I use SCCM to deploy a very simple CMD file to copy one file over the top of a file, of the same name, in a folder on the Public user's Desktop. This method (I thought) has been working flawlessly for me, but for this deployment, I have had reports that even though SCCM returned a successful completion, the file copy did not work, as evidenced by the date on the file in the folder.
The Package is deployed with a program Command line of "cmd /c <cmdfile.cmd>", Run Hidden, No action required after running, Whether or not a user is logged on, Suppress program notifications and nothing else unusual. The text of the CMD file is "copy /y <filename.xxx" "%public%\desktop\<Folder Name>\"
First, I would ask is there a better way to deploy a file copy? I'm not a good vb-scripter, so I've used CMD and batch files by default. But I am not opposed to using VB scripts. Second, Is there some simple code to place in a CMD file to return a success or failure code to SCCM.
Any advice you can give would be appreciated. Thank you.