Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > renaming with batch file, no overtype?

renaming with batch file, no overtype?

Forum Windows XP : Windows XP General Discussion - renaming with batch file, no overtype?

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.windowsxp.general (More info?)

 

I'm trying to script a batch file that renames a group of files. I'm using
this setup currently:

@ECHO OFF
set string="string of text"
rename *.file %string%*.file

But what it does (and what I don't want it to do) is overtypes on the
current filename. Example:

input filename: this is a filename.file
output filename: string of textname.file

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > renaming with batch file, no overtype?
Go to:

There are 590 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them