Thanks again Aengus, your suggestion worked.  I was able to change the directory and
the program runs fine now.

-Jessica

Aengus Lawlor wrote:

> Jessica, I'd guess, based on the errors that you are getting, that the
> shell command isn't setting the "working directory" for the application
> it's launching, so that when you call c:\analog\analog.exe, the
> application is running in the directory of the VB application, so
> instead of looking for C:\ANALOG\LANG\uk.lng it's actually looking for
> C:\VBDirectory\LANG\uk.lng.
>
> VBs shell command doesn't seem to include a "working directory"
> parameter, so I'm not sure what the best way to set it, but you might
> just try
>
> ChDir "C:\ANALOG"
>
> just before your shell command. (You might need ChDrive "C" as well).
>
> Aengus
>
> ______________________________ Reply Separator _________________________________
> Subject: Re: [analog-help] Analog 3.3 and VB5
> Author:  [EMAIL PROTECTED] at Internet
> Date:    6/23/99 5:30 PM
>
> A few more details.....
> I ran the program as many times as I could, and I saw 3 errors/warnings:
>
> Warning: Failed to open configuration file analog.cfg:  Ignoring it
> Warning: Failed to open language file lang/uk.lng:  Ignoring it
> Fatal Error: Can't read language file lang/uk.lng: exiting
>
> When double click on analog.exe or run it from the command prompt by typing
> analog.exe, the program works fine and generates the report.  Should I assume
> that Analog can't run through Visual Basic?
>
> Thanks,
> Jessica
>
> Jessica Vellela wrote:
>
> > Hi-
> >
> > I'm trying to create a VB program that will automatically download log
> > files and run Analog on them (on NT 4).  I'm having trouble trying to
> > run Analog from VB using VB's Shell() command:  the program flashes up
> > in a dos window, then disappears and the report isn't generated.  If
> > anyone has any ideas about this I'd really appreciate it.
> >
> > Thanks!
> > Jessica
> >
> > ------------------------------------------------------------------------
> > This is the analog-help mailing list. To unsubscribe from this
> > mailing list, send mail to [EMAIL PROTECTED]
> > with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
> > List archived at http://www.mail-archive.com/[email protected]/
> > ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------
> This is the analog-help mailing list. To unsubscribe from this
> mailing list, send mail to [EMAIL PROTECTED]
> with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
> List archived at http://www.mail-archive.com/[email protected]/
> ------------------------------------------------------------------------
> ------------------------------------------------------------------------
> This is the analog-help mailing list. To unsubscribe from this
> mailing list, send mail to [EMAIL PROTECTED]
> with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
> List archived at http://www.mail-archive.com/[email protected]/
> ------------------------------------------------------------------------

------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to