Computing.Net > Forums > Programming > DOS Batch File Help?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

DOS Batch File Help?

Reply to Message Icon

Name: iridius
Date: August 2, 2007 at 18:53:12 Pacific
OS: Window XP
CPU/Ram: 2gb
Product: Dell
Comment:

Hi, new to this forum, hoping someone can help me with a pretty simple batch file.

I need to go through a directory and rename every folder in it, from the original name to original name.gif. Yes, the folders will have the extension.gif. Don't ask, just please help.

Thank you!



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: August 3, 2007 at 02:36:47 Pacific
Reply:

@echo off
setLocal EnableDelayedExpansion

for /f "tokens=* delims= " %%a in ('dir /b/ad') do (
ren %%a %%a.gif
)



=====================================
If at first you don't succeed, you're about average.

M2



0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: DOS Batch File Help?

DOS Batch File Commands www.computing.net/answers/programming/dos-batch-file-commands/14637.html

Batch file Help! www.computing.net/answers/programming/batch-file-help/14203.html

Batch file variable creation www.computing.net/answers/programming/batch-file-variable-creation/14564.html