不需要任何軟體,用批次檔做簡單的批次更名

簡單的批次更名
下面是範例:


把影像001~015改成貓咪001~015
只要用記事本存成bat批次檔。

@echo off
For /L %%i in (1,1,9) do ren “影像00%%i.jpg” “貓咪00%%i.jpg”
For /L %%i in (10,1,15) do ren “影像0%%i.jpg” “貓咪0%%i.jpg”
pause

解說:for是迴圈的用法,%%i就看成一個變數,第一個for是個位數1~9,接著第二個for就是十位數的,可以從10~99。

括號內的參數:(1,1,9)和(10,1,15)指得分別是從1到9,每次加1;從10到15,每次加1。 如果要10~99便是(10,1,99)。

如果要到百位數的話一話,就是100~999


54 thoughts on “不需要任何軟體,用批次檔做簡單的批次更名

  1. rebobmbk http://yogaheaters.com viagra coupon buy viagra kjjx [url=http://tuxrentalonline.com/]buy viagra 100mg[/url]

  2. my boyfriend uses viagra

    [url=http://viagrapillskj.com/]buy generic viagra[/url]

    viagra online

    cialis e viagra differenze

  3. dntabvtb http://tuxrentalonline.com buy viagra tablets generic viagra online kmev [url=http://yogaheaters.com/]cheap viagra[/url]

  4. twfvzmuf http://yogaheaters.com generic viagra online buy viagra uk peej [url=http://yogaheaters.com/]generic viagra[/url]

  5. unaekiow http://valleyofshadowsanddreams.com cheap viagra buy generic viagra rmen [url=http://yogaheaters.com/]viagra coupon[/url]

  6. 25mg blue generic pill viagra

    [url=http://viagradiscountsfa.com/]generic viagra online[/url]

    buy generic viagra

    viagra uk il prezzo migliore

  7. viagra twice

    [url=http://viagradiscountsfa.com/]viagra discount[/url]

    viagra online

    buy cheap generic viagra

  8. asijjqgu http://tuxrentalonline.com buy viagra pills buy viagra online qpha [url=http://tuxrentalonline.com/]buy viagra pills[/url]

  9. vlzqrlwi http://viagrainimper.info viagra online buy viagra online without prescription bcvu [url=http://viagraterconor.info/]buy viagra with paypal[/url]

  10. hmudjvqr http://viagraprobampho.info/ buy viagra buy viagra online ahbo [url=http://viagrazeochildha.info/]buy generic viagra[/url]

發表迴響

你的電子郵件位址並不會被公開。

限制時效已用盡。請重新載入驗證碼。