?
Solved

How to rename many files at once in Windows2000?

Posted on 2004-03-26
2
Medium Priority
?
147 Views
Last Modified: 2010-04-13
I want to take off the beginning 8 characters of 600 files, so do not want to do it manually.
This used to be relatively easy in the pre-windows DOS days.
If this is something I have to do from my 'command prompt,' the version I have under my Windows 2000 is 5.00.2195.

Thank you
0
Comment
Question by:MaryKim
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 1000 total points
ID: 10693036
Something like this should do it...

====renFiles.cmd==============
@echo off
for %%a in (*.*) do call :process %%a
goto end

:process
set fname=%1
echo ren %fname% %fname:~8%

:end
==========================

If this works for you - remove the 'echo' from the 'ren' line...
0
 
LVL 67

Assisted Solution

by:sirbounty
sirbounty earned 1000 total points
ID: 10693037
Sorry - to clarify:  As-is - it will only 'show' you what it's going to do.
If you want it to actually 'do' it - you need to remove that last echo...
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question