Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy files- rename using a count loop

Status
Not open for further replies.

lasd

Programmer
Jan 14, 2005
48
0
0
IE
was wondering if it is possible to do the following.
i am still copying the files but instead of naming them with the creation_date and component.path name i was wondering could i number them, say from 100000.tif up to the last file, which could be 120000.tif.

for eg. copy file
1235@2.tif over to a file called 100000.tif
and i want this to increment for each file
for eg. copy file
1236@2.tif over to a file called 100001.tif and so on for the next 20,000 files.
Is it an if statement or by using the count funtion.
your help really is appreciated
kindest regards
Lasd
 
check out sequences. You define start and end and you will be able to select from it a value and concat or process it with whatever you need.



Juliane
 


Sure you posted in the correct forum? Looks like a scripting solution to me. [bigglasses]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top