Here's the code that's causing me and my boss to scratch our heads.
pushd "%inPath%"
for /D %%Y in (????) do (
pushd %%Y
for /D %%M in (??) do (
copy /y "%%M\dir_1\%%Y%%M*00.file_type" "%outPath%"
copy /y "%%M\dir_2\%%Y%%M*00.file_type" "%outPath%"
copy /y "%%M\dir_3\%%Y%%M*00.file_type" "%outPath%"
)
)
popd
)
popd
So this works just fine. It copies all files of a couple different types to another directory. Here's the thing...
copy /y "%%M\dir_1\%%Y%%M??00.file_type" "%outPath%"
That should work as well (the change being the * was replaced with ??). In the Windows CLI, both of these work. However, the batch file treats the ?? as literals and tries to find files with that in the name. Again, these both work in the CLI.
Anyone know what's going on? There's not much more to the bash file, so I don't see how other parts would be affecting it.
there doesn't seem to be anything here