Well, did you have any further thoughts after I suggested using for and dir? Perhaps something like this?
Code:
@echo off
set src=C:\sourcefolder
set dest=C:\destinationfolder
setLocal EnableDelayedExpansion
for /f %%a in ('dir "%src%" /b /o:-d /t:w') do (
set var=%%a
)
mv "%src%\!var!" "%dest%"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.