Additional information filtering DS generated pdb file. Drag generated pdb file pdb automatically generate a new file to the original file name plus the ending _new.
@echo off setlocal enabledelayedexpansion set new=%~dpn1_new%~x1 if exist %new% del %new% for /f "delims=" %%i in (%1) do ( set j=%%i if "!j:~,6!"=="HETATM" echo !j!>>%new% if "!j:~,3!"=="END" echo !j!>>%new% ) if %errorlevel% equ 0 (echo OK) else (echo Failed) pause>nul