Hi,
אסף חיים פרייס wrote:
> 
> I've many .tec files that been created after mistakly deleting photos on my android.
> I'm trying to edit them, by deleting the 6 first chrs. and the last one.
> Then, I'm changing the file from .tec to .jpg.
> I have 3000 files!!!
> Is there any way to make it automatically, like a script or cmd commands?
> Thanks for your kind help/
> Asaf
> 
you already got three solutions, but here is another one in the form of
a batch file which only needs built-in commands of cmd.exe
    @echo off
    setlocal enabledelayedexpansion
    for %%f in ( *.tec ) do (
        set fn=%%f
        ren "!fn!" "!fn:~6,-5!.jpg"
    )
Regards,
Jürgen
-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)
-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Tuesday, April 22, 2014
Subscribe to:
Post Comments (Atom)
 
No comments:
Post a Comment