Does anyone know of a way to move files and folders that have the hidden, system, or read-only attribute set from the command-line or a batch file? (No, stripping the attributes first is not an option since there is no practical way to know which attributes were set in order to re-set them after the move.)
I tried using a utility I wrote that uses the shell’s file operation function, but that requires using
start /wto prevent the batch file from running on ahead, and it complains about long-filename support for some reason.
I tried using
robocopy, but it first copies the files and then deletes the originals instead of simply moving the source (which results in a frustrating delay, even with the excessive output redirected to