Solved

How to rename many files at once in Windows2000?

Posted on 2004-03-26
2
140 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
Comment Utility
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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

772 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

12 Experts available now in Live!

Get 1:1 Help Now