[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Location of Execution files



> This leads me to believe that it is the Excel COM API which is trying
to
> access the file, so the shorthand might not be applicable. In most
> examples I have seen the file has been opened using a hard coded
string
> including the full directory, so it might not be possible. Still
trying
> though.
>
> All help has been much appreciated, I won't be giving up, And should I
> find a solution I will let you know :)

Okay, well time to try something more complicated perhaps? Here is an
article that details how to read environment variables programmatically
using the getenv() method in C++.

http://www.informit.com/guides/content.aspx?g=cplusplus&seqNum=136

You can use getenv() to construct the absolute path to Excel.xls to pass
into to your myfile.open() method.

- Ian

Confidentiality Notice.
This message may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution,  or copying  of this message, or any attachments, is strictly prohibited.  If you have received this message in error, please advise the sender by reply e-mail, and delete the message and any attachments.  Thank you.