Search found 2 matches

by TomSalvato
23 Feb 2014 09:05
Forum: DOS Batch Forum
Topic: renaming contents of directory ...
Replies: 2
Views: 1298

Re: renaming contents of directory ...

foxidrive wrote:Use this command line and then examine renfiles.bat and run it if you are happy with it.

Code: Select all

for %a in (*.jpg) do @echo ren "%a" "%~nas%~xa" >>renfiles.bat


This was exactly what I was looking for. Worked perfectly.

Thanx, foxidrive!

-TS
by TomSalvato
22 Feb 2014 18:43
Forum: DOS Batch Forum
Topic: renaming contents of directory ...
Replies: 2
Views: 1298

renaming contents of directory ...

Hi experts - I hate to admit that my DOS skills have all but abandoned me over the years. What I'm trying to do doesn't sound that difficult, but the 'rename' command is failing me. I have a directory of a couple hundred .jpg files. Their naming convention is something like this: dppp2.jpg djdjj3.jp...