Re: PATH Environment Variable Trouble

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"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.


.



Relevant Pages

  • Re: Executable awk script
    ... file extension to gawk.exe more or less ends up with the same result). ... approachable than Perl. ... Too lazy to associate .awk with gawk.exe, too, so I usually write a .cmd script to ...
    (comp.lang.awk)
  • Re: Tcl application deployment
    ... >>file extension with a scripting language and having an invocation take ... > language, not with language itself. ... DLLs and EXEs are after all the same thing at heart, ... > it script and rest of arguments. ...
    (comp.lang.tcl)
  • Re: how do i do this - stream file
    ... the file extension of the file that they click on ... dialog for them when they click on the hyperlink. ... > when pressed, runs a script that calculates the signature of the file, ...
    (comp.lang.python)
  • Re: [MSH] The new name is: Windows Power Shell
    ... PSH - (Power SHell) - It's OK I guess. ... matched the file extension for scripts. ... What file extensions does my PS/WIPS script editor need to recognize? ...
    (microsoft.public.windows.server.scripting)
  • Re: File associations
    ... a File Extension - If there isn't actually a File Extension on the ... If you do want to Create any particular File Association, ... & Internet Explorer actually just *ignores* the MIME Type ...
    (uk.people.silversurfers)