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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use foreach container

Status
Not open for further replies.

jan0000

Technical User
Dec 2, 2010
1
Hi guys,

I am trying to implement the following using Visual Studio:

I'd like to save 20 file names in an array. Those files are in the same folder an shall be renamed from NAME to NAME_backup using a foreach container which uses the file names from the array to copy and rename the files.

My problem is, after inserting a foreach container, I'm lost. I have found a tutorial which explains how to use the file enumerator. However, I cannot use this one because there are also other files which mustn't be renamed.

Probably, I'm using the wrong key words, but I cannot find a simple howto for this problem.

Thanks,
Jan

 
do the filenames following a similar pattern? If so you can read the file names based on patter matching.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top