Hi,
This is a question relating to the DOS shell under W2K. This will sound very trivial, but regardless, I can't figure out how to accomplish it:
Via a standard MSDOS .bat script, I need to be able to move the entire contents of one directory to another directory on the same drive with the option to auto-confirm overwrites as needed.
Trying to use the MSDOS move command with the /Y option just gives me "access is denied" errors no matter what I do. I can move the contents of one dir into the other dir, but not if a dir of the same name already exists there. My test attempts show I can move these same dirs over one another by drag-and-drop via any file manager, so I'm not sure what the "access is denied" is telling me. If it were a filesharing thing, it would/should give me a problem in a file manager as well.
Also, I can't use a copy/delete routine in any event because I tend to move large amounts of files/dirs and that's just far too inefficient.
I'd be happy with a pointer a command line util that takes care of this silliness or a basic script routine that emulates the task as defined above.
Help will save me lots of hair-pulling and wasted time, so it will be greatly appreciated.
Mansooj