When you run it with an ASP, it is being run under the auspices of a web process (I am using that not as a technical term, but as a descriptive one).
When you double-click the file, you are not.
I think I would put the results of .ServerVariables("LOCAL_ADDR") into a variable. Then I would add a test to see if the veriable received any results. If not, then I would try something like CurDir(), or something else along those lines.
But the bottom line is that there is no IP Addr when you double-click the file.
|