Okay. So, with the advent of GUIs being all over the place, I may have become a little bit too dependent on them. And, since it has been a while since I actually sat down and wrote a simple batch file, I may be a little rusty. But what the hell am I doing wrong in the following scenario:
Picture this. Two computers, and only two computers, connected via a simple crossover cable. They are in the same workgroup and can see each other fine. Their names are respectively Sugarloaf and Poindexter. One of the two computers, Sugarloaf, by the way, has a Zip drive that is properly installed and working fine.
The computer with the Zip drive, Sugarloaf, has a directory. Let’s say the path is: C:\Program Files\Horse Fever\Melancholy. Inside the Melancholy folder is several other folders and files. There are only two folders (and the files within) that I want to deal with. Those folders are respectively called Nasal Drip and Cholera.
So, the full paths of the two directories that I want the batch files to address are:
C:\Program Files\Horse Fever\Melancholy\Nasal Drip*.*
and
C:\Program Files\Horse Fever\Melancholy\Cholera*.*
and to ignore all everything else in the Melancholy directory.
I want to create two different batch files. The first batch file, will be on the desktop of the computer with the Zip drive, Sugarloaf. When it is double clicked, all it will do is copy those two directories, and all of the files inside them, to the Zip drive, which is designated by M:. Also, since these directories already exist on the Zip drive, I want the two newer directories to overwrite the older directories without receiving any error messages about folders and files that have the same name.
The second batch file will copy the very same two directories across the workgroup from Sugarloaf to Poindexter, overwriting the very same two directories on Poindexter, without any error messages or prompts as well. I may want to schedule this second batch file in the future, but for right now I just want it to work properly, once.
I understand about starting with a Text file, stacking the commands in order, and then renaming it to a Batch file. But I am doing something wrong. Please help me.