I just saw you need separate file for each document.
Here's a modification:
Main Topics
Browse All TopicsHello Chaps, i have a database that has a field which contains a value (comments) of which we need to be exported into a text doc. with the client name used as the name of the text doc The database contains approx 5,000 files all with the same field and all in need to be exported into a folder containing the text files. Within the database however, there are some clients with the same name, so there must be some code that identies this and puts say (1) at the end so there is no over writing.
Can anyone assist. Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
And here's how to check whether the file exists:
(copy and paste all this into script library, Declarations section)
Then, in your agent:
Use "yourScriptLibraryName"
And then just call:
If OSFileExist( "D:\Clients\LotusOutput\" & clientName ) Then ...
OK, wait, now that I made this far I'll incorporate it for you, in the next post...
Business Accounts
Answer for Membership
by: mbonaciPosted on 2009-10-30 at 05:15:03ID: 25702135
Here is a start, you'll have to modify it to test for duplicates.
If you don't know how ask specifics and we'll help you...
Select allOpen in new window