I need a batch file to strip .eps extension.

September 1, 2010 at 12:52:17
Specs: Windows XP, 2.4 P4/1G
I need a batch file to strip off the .eps extension from image files.

See More: I need a batch file to strip .eps extension.

Report •

#1
September 1, 2010 at 13:52:35
@echo off & setLocal EnableDELAYedeXpansion

for /f "tokens=* delims= " %%a in ('dir/b *.eps') do (
move /y %%a %%~Na
)


=====================================
Helping others achieve escape felicity

M2


Report •

#2
September 2, 2010 at 05:13:29
Sorry, this does not seem to work. I have put it in to a bat file and when I drop the EPS file on it, the script seems to run but the extension is not removed.
Thanks

Report •

#3
September 2, 2010 at 05:25:58
Sorry for the previous post. It does work. I was trying to drop from a second folder. Once I put the EPS in the same folder with the .bat, I was able to run the bat and have the EPS stripped. Many thanks!

Report •
Related Solutions


Ask Question