Windows Batch for renaming files extensions

  • warning: Illegal string offset 'data' in /home/content/22/3380422/html/includes/tablesort.inc on line 110.
  • warning: Illegal string offset 'data' in /home/content/22/3380422/html/includes/tablesort.inc on line 110.
  • warning: Illegal string offset 'data' in /home/content/22/3380422/html/includes/tablesort.inc on line 110.
  • warning: Illegal string offset 'data' in /home/content/22/3380422/html/includes/tablesort.inc on line 110.

Sometimes you need some batches for doing stuff like appending extension to existing files or removing extension from existing files
After googleing as I'm not good in CMD scripting I manged to write both renameToOld.bat and undo-renameToOld.bat batches
which rename all the files found in a specific folder to *.old and reverse operation by removing the .old extension from the files found in a specific folder.

for renameToOld.bat :
@ECHO OFF

REM
REM Remove the double quotes from the front and end of the root path
REM
SET ROOT="D:\Projects\NRS\scms\scms\core\src\main\java\com\gemplus\oman\scms\business\service"
SET ROOT=%ROOT:~1%
SET ROOT=%ROOT:~0,-1%
ECHO %ROOT%

ECHO Renaming all java files found in %ROOT% to *.old :
FOR /F "DELIMS==" %%f in ('DIR "%ROOT%\*.java" /B') DO (
rename %%f %%f.old
ECHO %%f changed to %%f.old
)

-----------------------

and for undo-renameToOld.bat :-

@ECHO OFF

REM
REM Remove the double quotes from the front and end of the root path
REM
SET ROOT="D:\Projects\NRS\scms\scms\core\src\main\java\com\gemplus\oman\scms\business\service"
SET ROOT=%ROOT:~1%
SET ROOT=%ROOT:~0,-1%
ECHO %ROOT%

ECHO Renaming all java files found in %ROOT% to *.old :
FOR /F "DELIMS==" %%f in ('DIR "%ROOT%\*.old" /B') DO (
set file=%%f
for /F "tokens=*" %%A IN ("%%f") DO rename %%f %%~nA
)

echo Done.

AttachmentSize
renameToOld.bat417 bytes
undo-renameToOld.bat447 bytes

Thanks for this post, I am a

Thanks for this post, I am a big fan of this website would like to go on updated.

mijntestament.be

To create a such kind of

To create a such kind of article is really amazing,I daily read your blogs and give my announcement for that here this article is too great and so entertaining. Macha-hockey.org Lafemmeprivee.com

I would like to thank you

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. Thanks...

http://sgdatingweb.com/gfas-review-how-the-girlfriend-activation-system-attracts-women/

I know your expertise on

I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information.
www.sgdatingweb.com

I can set up my new idea

I can set up my new idea from this post. It gives in depth information. Thanks for this valuable information for all,..

CopyFight

I appreciate everything you

I appreciate everything you have added to my knowledge base.Admiring the time and effort you put into your blog and detailed information you offer.Thanks.

Copy Fight

The website is looking bit

The website is looking bit flashy and it catches the visitors eyes. Design is pretty simple and a good user friendly interface.

maes-oil.be

I really thank you for the

I really thank you for the valuable info on this great subject and look forward to more great posts. Thanks a lot for enjoying this beauty article with me. I am appreciating it very much! Looking forward to another great article. Good luck to the author! All the best!
https://www.rebelmouse.com/girlfriendsystemreview/

Positive site, where did u

Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work.
https://www.rebelmouse.com/girlfriendsystemreview/

Untuk tren tahun ini tentang

Untuk tren tahun ini tentang Hijab Model Terbaru yang menghasilkan berbagai macam fashion hijab seperti Tunik Model Terbaru yang stylish dan fashionable menjadi busana favorit yang dimiliki oleh banyak hijabers dan digunakan sehari - hari.

When an on the internet user

When an on the internet user goes to any of these search engines and kinds in a keyword and key term or term, there are two kinds of outcomes that will pop up namely organic SEO and subsidized outcomes. why not try here

The capture is, regardless

The capture is, regardless of what position you obtain on your web site or content, if no one is aware of it, or if everyone prevents studying 50 percent way through, everybody drops. So, you try to power nourish your redundancy to be able to obtain position without dropping people entirely in the procedure. Think "Family Feud" where the aggressive near relatives is known as Dawson. watch action movies

Wonderful illustrated

Wonderful illustrated information. I thank you about that. No doubt it will be very useful for my future projects. Would like to see some other posts on the same subject!

Tapijtcenter

Sometimes you need some

Sometimes you need some groups for doing aspects appending growth to existing information or eliminating growth from existing files. http://fiberopticlight.net/

This is a great inspiring

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post. https://rebelmouse.com/obsessionformulareviews/

hh

I am hoping the same best effort from you in the future as well. In fact your creative writing skills has inspired me.
Khedi.com

Due to the unpredictable

Due to the unpredictable nature of modern economy, most customers prefer low cost SEO solutions. Guiding there are some exterior hyperlinks towards the client's website comes under profile backlinks. Backlink listing includes listing many one-way hyperlinks to enhance the site's exposure in google for instance Google. http://articlewritingin5dollar.blogspot.com/

Backlink listing includes

Backlink listing includes listing many one-way hyperlinks to enhance the site's exposure in google for instance Google. discover this info here

the contents are very

the contents are very fascinating.. thanks for sharing.. :)

buy soundcloud services

Looking forward to read more

Looking forward to read more of your post and updates in the future. Thanks for posting this :)

increase instagram comments

I really appreciate this

I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people. Looking forward to read more of your post and updates in the future. purchase soundcloud plays

Thanks for the

Thanks for the information..

buy soundcloud services

apna zamaana hai

Happy Independence Day India 2015 speech essay images sms messages wishes 69th quotes photos messages wallpaper status pictures greetings hindi pic indian freedom

happy independence day

Good post but I was

Good post but I was wondering if you could write a litte more on this subject? I’d be very thankful if you could elaborate a little bit further. Appreciate it!
get the girl out of your league

oh my..

This is a very good tips especially to those new to blogosphere, brief and accurate information…

Thanks for sharing this one. A must read article

get instagram likes

Good day! This is such a

Good day! This is such a nice post and also helpful, keep it up.. purchase instagram services

Your article has piqued a

Your article has piqued a lot of positive interest. I can see why since you have done such a good job of making it interesting.
tegels keramisch

Wonderful Post

I am doing job and studying as well. I am using a website and pay to do assignment. For my topic this blog is very helpful.

I admire what you have done

I admire what you have done here. I like the part where you say you are doing this to give back but I would assume by all the comments that this is working for you as well.
make any girl like you instantly

i just stop and watch this

i just stop and watch this website and i found out that this is very interesting.

 

purchase soundcloud likes

csf

Very Nice Article Thanks For Sharing.. Very useful information.. Keep it up.

clothing
manufacturer

 What a fantabulous post

 What a fantabulous post this has been. Never seen this kind of useful post. I am grateful to you and expect more number of posts like these. Thank you very much.

best way to get your ex girlfriend to want you back

hello!! Very interesting

hello!! Very interesting discussion glad that I came across such informative post. Keep up the good work friend. Glad to be part of your net community.

Dori Friend Page One Engine

thanks

thanks for these post.. now i can  append extension to existing files or removing extension from existing files..meanwhile check this link

and get instagram services

It helped me

This article is written very well my friend, and it really helped me solve my problem.:) 

buy soundcloud downloads

Gabrielle Taylor

nice blog like this but chose the new try it to change the theme Gabrielle Taylor

wallens

Awesome and interesting article. Great things you've always shared with us. Thanks. Just continue composing this kind of post.

how to
gain twitter followers

likes on facebook

thanks for sharing this,.

thanks for sharing this,. its a great help,.Buy Datpiff Downloads very informative..

Very Nice Article Thanks For

Very Nice Article Thanks For Sharing.. Very useful information.. Keep it up..
Funny Mothers Day Quotes,

Ramadan Fasting Times, Fathers Day Quotes,

Very Nice Article Thanks For

Very Nice Article Thanks For Sharing.. Very useful information.. Keep it up..
Eid Mubarak Wishes,

Ramadan Fasting Times, Fathers Day Quotes,

Anonymous

Very Nice Article Thanks For Sharing.. Very useful information.. Keep it up..
Bombay Velvet Box Office Collection

Ramadan Fasting Times, Fathers Day Quotes,

There is a lot of

There is a lot of information to learn about. Do not worry, this article has some fabulous advice. The advice you are going to learn will keep your organized Jamorama ReviewObsession Phrases ReviewNo Cost Income Stream Review

We are looking forward to

We are looking forward to read more of your post and updates in the future. ­ Truth about Abs Reviewsdoes Natural Clear Vision workRevertir la Diabetes Review

You can therefore depend on

You can therefore depend on such if you have future plans of renting or selling your home and this will help you to fetch more in the market. does Brain Stimulator Method workFree Credit Card Knife ReviewQuemando Y Gozando

It's a platform that can be used to expand

This is also a very excellent publish which I really experienced studying. It is not everyday that I have to be able to see something like this.

Cheap Youtube Views

Thanks for the post and

Thanks for the post and great tips..even I also think that hard work is the most important aspect of getting success..

Entrepreneur terrassement

Thanks for sharing the

Thanks for sharing the information which I believe never heard before
and will sure help me to explore some awesome new things for me.  Buy garage flooring items online from garageflooringuk.co.uk

I really appreciate this

I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people. Thanks for this nice article.  grass reinforcement mesh

Powered by Drupal - Design by artinet