I am using this code to move pdf files from the folder "PDF" to "PDF\old"
C:\WINDOWS\system32\cmd.exe /c "for /r c:\Users\ADMIN\Desktop\PDF\ %f in (*.pdf) do @move "%f" c:\Users\ADMIN\Desktop\PDF\old"
however, when there's a subfolder ("PDF\sub") with more PDFs, they will get moved to the folder "PDF\old" too - can the command be restricted to exclude any subfolders?
Thanks a lot