Solved

How to rename many files at once in Windows2000?

Posted on 2004-03-26
2
142 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

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…
One of the biggest threats in the cyber realm pertains to advanced persistent threats (APTs). This paper is a compare and contrast of Russian and Chinese APT's.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

776 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