I'm trying to create a batch file that will take all the non-links from the desktop and move them to a folder, including directories.
This is what I've got so far...
@echo off&setlocal enableextensions
set src=C:\Documents and Settings\Administrator\Desktop
set dest=C:\Documents and Settings\Administrator\My Documents\Desktop
pushd %src%
for /f "tokens=*" %%a in ('dir/b/a') do (
IF /I %%~xa NEQ .lnk (
robocopy %%a %dest% /S /MOVE>nul
)
)
popd&endlocal&goto :eof
When I run this... nothing happens...
Any ideas/suggestions would be appreciated.



Help
Back to top










