VTX Fix Not Working Properly

Hey guys, I’m having a problem trying to convert some L4D2 models into a Garry’s Mod compatible format. I’m using the .bat file code below but for some reason it doesn’t create copies of dx80, dx90 and sw files like it says it does. Instead, it just leaves me with the .mdl and .vvd file. Any ideas?



REM ----------------------
REM Left 4 Dead models fix. Useful when importing L4D models to Garry's Mod 10
REM This .bat creates '.dx80.vtx', '.dx90.vtx' and '.sw.vtx' files for all L4D models automaticaly :D
REM ----------------------
REM Usage :
REM ----------------------
REM Extract this .bat file to \models folder after you have Extracted L4D content. After run this bat and it will do everything automaticaly for you. :)
REM ----------------------
REM Credits :
REM ----------------------
REM Created by Ferdam
REM Version 4.0

REM Before erase all dx80, dx90 and sw files

FOR /R %%a IN ("*.dx80.vtx") DO del "%%a" 
FOR /R %%a IN ("*.dx90.vtx") DO del "%%a"
FOR /R %%a IN ("*.sw.vtx") DO del "%%a"

REM Create new copies of dx80, dx90 and sw files

FOR /R %%a IN ("*.vtx") DO copy "%%a" "%%~dpa%%~na.dx80.vtx"
FOR /R %%a IN ("*.vtx") DO copy "%%a" "%%~dpa%%~na.dx90.vtx"
FOR /R %%a IN ("*.vtx") DO copy "%%a" "%%~dpa%%~na.sw.vtx"

REM Delete wrong combinations

FOR /R %%a IN ("*.dx80.dx90.sw.vtx") DO del "%%a" 
FOR /R %%a IN ("*.dx80.dx90.vtx") DO del "%%a"
FOR /R %%a IN ("*.dx80.sw.vtx") DO del "%%a"
FOR /R %%a IN ("*.dx90.sw.vtx") DO del "%%a"

pause