in reply to Re: Another Win32::OLE question
in thread Another Win32::OLE question

I am positive that I had not changed the directory at all. I checked this before posting my question. I could not think of anything, but I read through my whole script anyway and could not find anywhere. After reading your reply I decided to change to the directory that it should be just in case. It worked! Which is good, but kind of annoying that I have wasted my own and everyones time. Now I just need to see why it is changing directories without my telling it to... Cheers all for the advice.

Replies are listed 'Best First'.
Re: Re: Re: Another Win32::OLE question
by cacharbe (Curate) on Oct 21, 2001 at 07:27 UTC
    I've found while working with ::OLE it's best to explicitly detail your file paths and file names, especially if this is a remote application on a webserver. The Webservers working directory ISN'T necessarily the directory of the application, believe it or not.

    Be that as it may, I'm glad I could help.

    C-.

      Actually it will be for Windows systems, I will not be running it from a webserver. I was a little hesitant to change the directory to the correct directory because if someone does not do standard installation of my program it will not work. (I will not know what the directory is). Of course with a little bit of thought I got around this by using Cwd at the beginning of my script and then changing to that directory later on. Still there is much to learn, but it is enjoyable. Cheers once again.