Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

increment filename

Original Message
Name: mondial
Date: May 8, 2007 at 12:56:01 Pacific
Subject: increment filename
OS: windows 95
CPU/Ram: 20 mb
Model/Manufacturer: ibm thinkpad
Comment:
Hi. Would like to know how to increment a
filename. ie. file.txt to file01.txt, file02.txt, file03.txt
etc. It's the same file with different names. Thanks.

Report Offensive Message For Removal


Response Number 1
Name: Mechanix2Go
Date: May 8, 2007 at 13:56:02 Pacific
Subject: increment filename
Reply: (edit)
Do you want to make copies or rename or what?


=====================================
If at first you don't succeed, you're about average.

M2



Report Offensive Follow Up For Removal

Response Number 2
Name: mondial
Date: May 9, 2007 at 07:34:17 Pacific
Subject: increment filename
Reply: (edit)
I suppose rename will destroy, but I need to keep
all copies, so copy it is. Thanks.

Report Offensive Follow Up For Removal

Response Number 3
Name: Mechanix2Go
Date: May 9, 2007 at 23:44:50 Pacific
Subject: increment filename
Reply: (edit)
for %%N in (01 02 03) do copy file.txt file%%N.txt


=====================================
If at first you don't succeed, you're about average.

M2



Report Offensive Follow Up For Removal

Response Number 4
Name: mondial
Date: May 10, 2007 at 09:19:49 Pacific
Subject: increment filename
Reply: (edit)
Thanks, looks easy now. Is this the only way even
if you need to make ~70 copies?


Report Offensive Follow Up For Removal

Response Number 5
Name: mondial
Date: May 10, 2007 at 11:11:06 Pacific
Subject: increment filename
Reply: (edit)
I figured it out. /l
Thanks.

M


Report Offensive Follow Up For Removal


Response Number 6
Name: matta
Date: May 25, 2007 at 06:35:50 Pacific
Subject: increment filename
Reply: (edit)

I would like to incrment the file extension at different times. When the file is created at 1:30 as <filename>.txt it could be renamed as <filename>.001. Then, when the file is created at 2:00 as <filename>.txt again it could be renamed as <filename>.002, etc...
Any ideas?

Report Offensive Follow Up For Removal

Response Number 7
Name: Mechanix2Go
Date: May 25, 2007 at 13:16:01 Pacific
Subject: increment filename
Reply: (edit)
You need a new thread.


=====================================
If at first you don't succeed, you're about average.

M2



Report Offensive Follow Up For Removal

Response Number 8
Name: Fen_Li
Date: June 29, 2007 at 14:32:35 Pacific
Subject: increment filename
Reply: (edit)
@mondial

70~copies :
for /l %%a (1,1,70) do copy "file.txt" "file%%~a.txt"

"still newbie kid"


Report Offensive Follow Up For Removal

Response Number 9
Name: Mechanix2Go
Date: June 30, 2007 at 02:09:06 Pacific
Subject: increment filename
Reply: (edit)
There is no for /l in DOS.


=====================================
If at first you don't succeed, you're about average.

M2



Report Offensive Follow Up For Removal



Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: increment filename

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




acer 312T BIOS problem

K7 Turbo possible max fsb?

Pc anywher problem

WinFLP & OE/Outlook2003

Computer resets after a few minutes


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC