in reply to Re: Re: Find the full path of the script at run time
in thread Find the full path of the script at run time

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Re: Re: Re: Find the full path of the script at run time
by ibanix (Hermit) on Mar 13, 2003 at 02:20 UTC
    Er... no. Do you people even bother to test your code, or read the question?

    Your code produces this:
    C:\> foo.pl C://\\flash\it\NOC-TO~1\foo.pl
    which obviously isn't going to work.

    $ echo '$0 & $0 &' > foo; chmod a+x foo; foo;