Re: PATH Environment Variable Trouble
- From: "Mark" <melliot@xxxxxxxxxxxxxxxxx>
- Date: Mon, 5 Feb 2007 12:01:59 -0800
"Curtis" <dyer85@xxxxxxxxx> wrote in message
news:1165234069.975087.169210@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Pegasus (MVP) wrote:
I don't think your problem has anything to do with the %path%
environmental variable and everything with the asscociation you
have set for the .pl file extension.
Thanks for the reply, Pegasus.
Just after posting, I double checked what was associated with the .PL
extension. As expected, .PL files are associated with the perl.exe
binary located in the /bin folder in my Perl installation (as specified
in documentation).
Both the file that is to be executed, and the perl.exe binary are in
directories that are specified in %PATH% as well. Yet, I still have the
problem I specified above.
It doesn't seem to be affecting standard executables. I wrote a quick
little C app to test arguments passed on the command line, and dumped
it in my batch directory (in %path%), and it works as expected, no
matter what the current working directory is.
This might well be something I've done wrong with Perl after all. If
this is the case, I'm sorry for wasting everyone's time here.
The problem is the %1 in the file association. I've had this happen on the
last couple machines I installed perl on.
The association has to be
"c:\Perl\bin\perl.exe" "%1" %*
The default that gets created is
"c:\Perl\bin\perl.exe" "%1"
So it passes the script name to perl.exe, but not any of the variables that
are supposed to be passed to the script.
.
- Prev by Date: disable IE7 update icon
- Next by Date: I get to IP-addresses to change them?
- Previous by thread: disable IE7 update icon
- Next by thread: I get to IP-addresses to change them?
- Index(es):
Relevant Pages
|