[Solved] Needed Batch command for moving file other than *.bat all others to the different folder [closed]

[ad_1]

pushd "c:\folder_with_bat_files"
for /f "tokens=* delims=" %%a in ('dir /b /a:-d^| findstr /i /e /v "bat"') do (
   move /y "%%~fa" "c:\some_dir"
) 

use findstr command to filter the redults of dir command.

4

[ad_2]

solved Needed Batch command for moving file other than *.bat all others to the different folder [closed]