Mag. Matthias Faffelberger wrote:
>I changed to use analog analyzer to check our log files. the web server
>runs under windows nt 4.0 with the iis 4.
>
>now i want to automate generating the reports. therefore, i wrote some
>batch files, which i placed directly into the root directory of analog.
>the batch files really work fine and i get the desired results.
>
>BUT if i use THE SAME batch file within an "AT" command for scheduling the
>reprts, i get an error messages "Warning F: Failed to open language file
>lang/de.lng:ignoring it" and "Fatal Error: Can't read language file
>lang/de.lng:exiting"
This has to do with the concept of "working directory". Analog.exe looks
for the LANG directory in the "current working directory", which is fine
if you are in the ANALOG folder when you run the batch file. But if you
change to C:\TEMP, and try to run C:\Analog\MyBAT.BAT (for example),
Analog will be running in C:\TEMP, and will look for C:\TEMP\LANG...
When you run a batch file using the AT command, it defaults to using the
C:\WinNT\SYSTEM32 folder as it working directory (as far as I can
remember). If you put a CD C:\ANALOG at the start of your batch file,
everything should work
You should also be resolve this specific issue by using
LANGFILE C:\ANALOG\LANG\lang.de
in your ANALOG.CFG
(I used C:\ANALOG for simplicity. If you have installed Analog somewhere
else, make changes as appropriate. If Analog isn't on the C: drive, you
will need to change drives as well as directories).
Aengus
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------