Solved

How to rename many files at once in Windows2000?

Posted on 2004-03-26
2
141 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
  • 2
2 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 250 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 250 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

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…
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now