Answer accepted
Main Topics
Browse All TopicsAnyone know the quickest way of detaching multiple attachments in various documents within Notes (5)- without having to access each doc individually and selecting attachment to detach...
Thanks in advance..
S
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.
Hi,
I am sorry,
you have to change the three lines in the code.
1. Set view = db.getview("Testing") -- To include the view name on which the agent will be running (change the "Testing") to include your view name.
2.Call obj.ExtractFile( "F:\AAA\" & filename1 & "(" & rndno &")" & "." & filenameextn )
3.Call obj.ExtractFile( "F:\AAA\" & obj.source & "(" & rndno &")")
The "F:\AAA\" to the path wherever you want to detach the files.
Good Luck !
-Arun
NOTE: The file names will have a random number padded to them in braces to overcome multiple files of the same name. for example if you have two attachments in two documents with file name a.txt then one will contain a(xxxx).txt and the other a(yyyy).txt
Do I have the correct Java code - I can't add code to set view??
import lotus.domino.*;
import java.util.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
//Database db = agentContext.getCurrentDat
DocumentCollection dc = agentContext.getUnprocesse
Document doc = dc.getFirstDocument();
while (doc != null) {
Vector attach = new Vector();
attach = doc.getEmbeddedObjects();
int size = attach.size();
for (int i = 0; i < size; i ++){
EmbeddedObject embed = (EmbeddedObject)(attach.el
embed.extractFile("h:\\jdg
}
doc = dc.getNextDocument();
}
}
catch(Exception e) {
e.printStackTrace();
}
}
}
Thanks again Arun!
Business Accounts
Answer for Membership
by: ArunkumarPosted on 2000-06-15 at 09:15:09ID: 2955549
Hi,
e.com/jsp/ qShow.jsp? ta=lotusno tes& qid=10 235817
Check out the following link. And the code in this works over the selected documents from which you would like to detach the files to a folder.
You will have to change name of the folder in this code.
http://www.experts-exchang
Good Luck !
-Arun