I have created a batch file to copy and zip up an entire drive of data on my server. I have selected the D:\ drive to be copied and zipped. However, I have one problem. When I run the batch file, only certain files from the D:\ drive are being copied over. Why am I having problems transferring all of the drive over to my backup source?
It could be that those files are in use at the time the batch file runs. Are you running this process to backup your files to another server? What exactly is this process used to accomplish? There may be better options available.
To move things along - what copy command are you using? If you use robocopy, it's got very good logging options that can answer this for you. That will tell you what's failing and probably why.
Files could be in-use. Your copy user might not have permissions. Those are the two things that jump immediately to mind. Going further into 'unlikely' territory, you could have paths that are too long, or have run out of disk space.