Solved I want to rename .jpg(from entire system) file in to .txt .

June 25, 2012 at 10:37:08
Specs: Windows 7
Hi All,

I have server , where i was to raname all .jbg file .txt via batch file .
Please help me.

Thanks
Sunil
<removed>@gmail.com

edited by moderator: Removed email address -Razor2.3


See More: I want to rename .jpg(from entire system) file in to .txt .

Report •

#1
June 25, 2012 at 10:40:59
And why would you want to do that?

How To Ask Questions The Smart Way


Report •

#2
June 25, 2012 at 10:44:31
1 Tip, never put your email address on any forum if you want to give someone your email use private message center located in 'my home'.
Aren't JPG. image files?

I am a hardware guy not a software guy but i try to help.


Report •

#3
June 25, 2012 at 11:06:40
✔ Best Answer
I don't see the relevance in asking him why he needs to do it. In any case:

@echo off
pushd your_dir
for /f "tokens=*" %%i in ('dir /b *.jbg') do move "%%i" "%%~ni.txt"
popd

Tony


Report •

Related Solutions

#4
June 25, 2012 at 11:29:16
It's a malevolence/ignorance check. If it fails, the topic goes away.

How To Ask Questions The Smart Way


Report •

#5
June 25, 2012 at 14:30:23
Ah, I understand.

Tony


Report •

Ask Question