My bat shall move a couple of folders, but there is one specific folder that will sometimes get moved, sometimes not for no particular reason.
move "%~dp0\source" "%ALLUSERSPROFILE%\target" >NUL
The bat gets executed automatically after the self-extraction of an archive and is run with elevation. The destination folder gets deleted (if exists) beforehand so there aren't any conflicts with already existing folders.
Any ideas to why this could happen?
Edit: If I put pauses in the script it seems to work .. do I have to wait after each step? Seems silly