There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.
@echo off
setlocal enabledelayedexpansion
set DirOriginal=%cd%
set Tmp=%DirOriginal%\tmp
:: --------- modify these ------------
set DirContainingFiles=Data
set DirToMoveTo=Moved
set ExcludesFile=%DirOriginal%
:: --------------------------
cd %DirContainingFiles%
if not exist !DirToMoveTo! md !DirToMoveTo!
for /f "tokens=1,2 delims=." %%a in ('dir /b') do (
if not %%b.==. (
echo %%b>%Tmp%
findstr /i /x /g:%ExcludesFile% %Tmp% > nul
if not !errorlevel!==0 move /y %%a.%%b %DirToMoveTo%\%%a.%%b
)
)
cd %DirOriginal%
del %Tmp%
endlocal
In the excludes file you can list all the extensions to exclude, one per line e.g.
jpg
gif
bmp
ext
...and so on