For years on XP, Win7, Win8 & 8.1 I have used this batch file method to transfer pictures from a card reader to a (the same) directory on my computer. After upgrading to Win10 it no longer works.
When I try to run it I get this:
I see what's wrong but don't know how to fix it. The entries in the batch file look exactly as the stuff following the right angle bracket in the text quoted above. Suddenly it has begun running as though the batch file was in the Windows directory (folder if you prefer). It isn't. It's still in my age old Card Transfer directory on a different internal drive.C:\Windows>dir J:\DCIM\198___07 1>nul
C:\Windows>if errorlevel 1 goto :ck39Cannonempty
C:\Windows>xCopy J:\DCIM\198___07\*.* /D /C
0 File(s) copied
Why does Win10 think a batch file actually running in an entirely independent directory on a different drive is running in the Windows directory? And, how can I make it normal again?