Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to rename many files at once in Windows2000?

Posted on 2004-03-26
2
Medium Priority
?
148 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
Are you looking for the options available for exporting EDB files to PST? You may be confused as they are different in different Exchange versions. Here, I will discuss some options available.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

636 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