Lotus Notes Kill Path/file Access Error
Training Support Forums & community Events Rational Tivoli WebSphere Java technology Linux Open source SOA and Web services Web development XML My developerWorks About dW Submit content Feedback developerWorks>Lotus>Forums & community>Notes/Domino 4 and 5 Forum Notes/Domino 4 and 5 Forum File Kill Produces Path/File Access Error File Kill Produces Path/File Access ErrorPosted by Tom R. on 6.Jun.05 at 01:33 PM using a Web browserCategory: Domino Designer -- LotusScriptRelease: 5.0.10Platform: All Platforms Hello Everyone- The following script produces a "Path/File Access Error" for certain documents but not others at the "Kill strTemplateName" statement (identified below). Can I somehow test for that error? I'd like the script to print the error and continue instead of halting the code. Thanks Dim s As New NotesSession Dim uiws As New NotesUIWorkspace Dim db As NotesDatabase Dim DocN As NotesDocument Dim eo As NotesEmbeddedObject Dim rtf As NotesRichTextItem Dim FindPath As Variant ' Declare Word-related variables Dim WordObj As Variant Dim varObj As Variant Dim fname As String Dim Wordo As Variant Dim v As NotesUIView Dim dc As NotesDocumentCollection Dim x As Integer, y As Integer ' Instantiate the current database Set db = s.CurrentDatabase Set v = uiws.CurrentView ' Instantiate the document collection Set dc = v.Documents ' Get a handle on the Word app Set WordObj = CreateObject("Word.Application") ' Loop through all selected documents in current view For x = 1 To dc.Count Set DocN = dc.GetNthDocument(x) Set rtf = DocN.GetFirstItem("Source_Attachments") If rtf.Type = RICHTEXT Then Forall o In rtf.EmbeddedObjects If o.Type = EMBED_ATTACHMENT Then ' Create the filename and path where the Word file will live strTemplateName = "C:\temp" + "\" + o.Name FindPath = True ' Check if file already exists in the direrctory If o.Name = Dir$( strTemplateName, 0 ) Then Kill strTemplateName <-- sometimes produces an error "Path/Fil
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Path/file access error: LotusScript up vote 0 down vote favorite I get an error Path/file access error in my agent. What is the nature of this error? This may be happening due to kill statement. So something to do with ACL? Thanks http://www-10.lotus.com/ldd/46dom.nsf/DateAllFlatweb/673ade30b9f722378525701800607579?OpenDocument in advance. lotusscript share|improve this question edited May 22 '14 at 9:56 Andrew 2,4751525 asked May 22 '14 at 9:53 user1525825 69117 Is it an schedule agent? –adminfd May 22 '14 at 10:43 1 Without the code the answer can be only guessing... I personally think. That Richard is right, but wiout code you cannot be shure –Torsten Link May 22 '14 at 20:48 Yes I agree without code it's only guessing. But I think I have got some http://stackoverflow.com/questions/23803399/path-file-access-error-lotusscript clues from answers. Thanks. –user1525825 May 23 '14 at 15:21 I got this error trying to kill files with "unusual" characters in file name. After renaming it worked. –Knut Herrmann Mar 17 '15 at 11:56 add a comment| 3 Answers 3 active oldest votes up vote 2 down vote Select the agent in Domino Designer and check the security tab of the Agent Properties box. Make sure that the Restricted Operations field is set to "Allow restricted operations" or "Allow restricted operations with full administration rights". See here. Also, make sure that the agent signer is granted unrestricted agent access on the Security tab of the Server Document for the server where the agent is running. See here. share|improve this answer answered May 22 '14 at 12:31 Richard Schwartz 9,49711232 Thanks Richard for your feedback. –user1525825 May 23 '14 at 15:17 add a comment| up vote 0 down vote You'll get a Path/file access error if the file doesn't exist, so check the spelling. You might also get the error if the file is not closed. share|improve this answer answered May 22 '14 at 13:32 Casper Skovgaard 1957 Thanks Casper for your hints. –user1525825 May 23 '14 at 15:18 add a comment| up vote 0 down vote Path/file access error appears when you try do access the FileSystem. You say that the kill Command is used. So maybe the File, you try to delete, didnt exist or you have no write access on you
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full https://www.experts-exchange.com/questions/24448796/How-to-remove-file-on-MAC-OS-X-from-script.html Time Job Ways to Get Help Expand Search Submit Close Search Login Join http://dontpanic82.blogspot.com/2009/01/use-nsd-kill-when-killnotes-doesnt-work.html Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > How to remove file on MAC OS X from script? Want to Advertise Here? Solved How to remove file on MAC OS X from script? Posted on 2009-05-29 Lotus IBM Mac OS X 1 Verified lotus notes Solution 5 Comments 827 Views Last Modified: 2013-12-18 On a MAC, OS X (10.4.11), Lotus Script kill statement causes "Path/File access error". Notes client is 7.0.2. How can I remove a file from on a MAC from Lotus Script? 0 Question by:fgrushevsky Facebook Twitter LinkedIn Google LVL 17 Best Solution byfgrushevsky Ok, the workaround I found is to create the file (exportFileName$) in the MAC /tmp lotus notes kill filesystem where the OS would take care of removing the file Go to Solution 5 Comments LVL 63 Overall: Level 63 Lotus IBM 28 Mac OS X 2 Message Expert Comment by:SysExpert2009-05-29 Please post your code. MAC oS is unix based so path names may be different. Also , if the file is open, it may not be possible to erase I hope this helps ! 0 LVL 17 Overall: Level 17 Lotus IBM 13 Message Author Comment by:fgrushevsky2009-05-29 SysExpert I know that MAC OS is unix based and I know about path names The file is not open, but you will see yourself. The line Kill exportFileName$ is causing problem. Sub ReportSpam Dim ws As New NotesUiWorkspace Dim Ws1 As NotesUIWorkspace Dim db As NotesDatabase Dim dc, dckill As NotesDocumentCollection Dim doc, DocKill As NotesDocument Dim memo As notesdocument Dim mime As NotesMIMEEntity Dim stream As notesstream Dim mimeBoundaryEnd As String, mimeBoundarystart As String, exportFileName As String, directory As String, macro As String Dim mimeType As String, pathName As String
work Today, I got a "Shared memory error" after the Notes client crashed.KillNotes didn't clean all the processes. This resulted in not being able to start Notes again. I did a little search, and found the solution.I created a small bat-file that executes the NSD-command. If you want to use it, you probably have to change the line that has the path to Notes, "cd \Program Files\lotus\notes\" to fit your environment. Posted by Tommy Valand at 1:43 PM Labels: Lotus Notes, random tip 13 comments: Sodibba said... Yours should work find. I used this instead. For the Beta the nsd -kill didn't remove everything. ----@echo offtaskkill /F /FI "IMAGENAME eq nsd.exe"taskkill /F /FI "IMAGENAME eq notes2.exe"taskkill /F /FI "IMAGENAME eq nlnotes.exe"taskkill /F /FI "IMAGENAME eq notes.exe"taskkill /F /FI "IMAGENAME eq ntaskldr.EXE"---- January 8, 2009 at 4:16:00 PM GMT+1 BigBearFreddy said... I created a desktop icon that runs: C:\Lotus\Notes\nsd.exe -killstart in:C:\Lotus\notes\dataConfigure a nice icon and you're done... January 8, 2009 at 5:28:00 PM GMT+1 Tommy Valand said... @BigBearFreddy: Shortcuts are too 21st century for me.. I live in the .com and .bat world.. :)Yours is easily a more esthetically pleasing solution (depending on the icon you choose). January 8, 2009 at 5:58:00 PM GMT+1 BigBearFreddy said... @Tommy: Your're quite right, but there are moments that a shortcut is very easy... Specially when Notes crashes 3 times in a row.And, more importantly: no end-user understands .bat. Which is a good thing, they would just make a mess of it... January 8, 2009 at 8:23:00 PM GMT+1 MIOPIASCOPIA said... I usually use the ZapNotes software which is available from the Sandbox for this purpose. January 9, 2009 at 10:11:00 AM GMT+1 inajeep said... Interesting, I switched to killnotes.exe since the nsd -kill never worked well for me. I had used zapnotes before which worked well too. April 7, 2009 at 7:59:00 PM GMT+1 Tommy Valand said... The great/dangerous thing about "nsd -kill" vs killnotes is that the nsd-method tries to "kill" all Notes/Domino tasks whereas killnotes closes only the client tasks.A certain plugin (won't name names) locks the HTTP-task so that you can't kill it using the admin console. Using the nsd method, you can close down the Domino server cleanly without having to restart the computer.(I'm no admin, so if there is a better way than the nsd-method for closing a server when the admin console won't, please don't crucify me..) April 8, 2009 at