Hi Everybody!!!
My requirement:
I need to access a file from another PC on the network and I need to incorporate tht as an attachment in the mail (for which i m writting an agent in lotus script)
My Problem:
I am being to able to attach the file if I have it locally on my system with the help of NotesEmbeddedObject class but when I give the full path of the network, e.g.:
\abc\c$\agent\attach.doc
where ‘abc’ is the name of the PC on the network.
C$–> is the C: drive of that PC which has a folder named agent within which the document is contained that I want to access n attach.
Will I need to save a copy of it locally on my machine or is it possible to do it directly?? If yes then how (how? in either case)?
The PC ‘abc’ is password protected so will I need to specify the password of the system too… is yes how?
Plz do reply at the earliest
Thank you
Subject: To access a file over a network through Lotus Script
Pia,
to my understanding Lotusscript is not able to create a new network connection within Windows “on the fly”, and is not able to pass user credentials to Windows. So your approach probably will not work.
I just recently added network-based files as attachments to Notes documents, but in my case the drive was already connected to a fixed drive letter. So, when logging on to Windows, I already had created my drive X: pointing to \server1\c$ and I had passed my credentials.
If you need to do this on the fly, you might need to switch to VisualBasic, write a small program (VB should have the classes to log on to Windows!) and call this program from your LotusScript code in order to log on to your Windows server.
Subject: RE: To access a file over a network through Lotus Script
Well I did try mapping the drive to the specific folder on the network but it still didnt take it!!!.. while attaching it gave the error “path not found!!”
how did u pass the user credentials u were mentioning!!!
Subject: RE: To access a file over a network through Lotus Script
It worked!!!It worked!!
Thank You…