Hello Bruce,

you wrote...

> My guess:  after you rename the file, the system routine (which 
> allfiles uses) processes the renamed file again and so your ren 
> routine gets called again.

> INclude the input path in the win.debug to see.

> If this is the case, use listfiles instead, as it captures a full 
> list of files to be made available for processing, unlike allfiles, 
> which processes each file as it is enumerated by the system.

Could you add a warning to the file.txt that it isn't recommended to use
File.AllFiles to rename files without moving them to another directory.



Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to