|i did notice you put dbl quotes around srcdir and then dbl quoted it. could this be the problem?|
set srcDir= "O:\Historical_AOT\"
set destdir= "O:\Test\"
looks like (to interpreter): pushd ""O:\historical_AOT\""
note that %srcdir% is already dbl-quoted, (also space in front!) then the pushd adds another set of quotes.
Keep in mind, batch interprets everything very literally.
f/e: set destdir= "O:\test\"
won't give destdir=:[O:\test\]
it will give destdir=:[ "O:\test\"]
we are used to using quotes, but batch is another game altogether. beware where and how you use them, both single, double and reverse. All have very special meanings to the interpreter. Not sure this is source of problem, but it might be.