in reply to 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: Find the full path of the script at run time
by ibanix (Hermit) on Mar 12, 2003 at 23:56 UTC
    I'm sorry, but this is wrong.

    If my script is C:\scripts\cwd.pl, and I run your code:
    C:\> C:\scripts\cwd.pl C:\
    I need the location of the script, not the current directory.

    ibanix

    $ echo '$0 & $0 &' > foo; chmod a+x foo; foo;
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Re: Find the full path of the script at run time
by fredopalus (Friar) on Mar 12, 2003 at 23:43 UTC