merrymonk has asked for the wisdom of the Perl Monks concerning the following question:

This problem is on a Windows XP PC. I successfully have always used the Tools->Folder Options->File Types GUI to register the fact that Perl scripts use Perl.exe with %1 %* with the Open action.
On a particular PC with administrator rights, this refused to work. The system would allow me to assign the association and did not give any error messages.
However, when I left Folder Options etc and opened this again, the assignment was not there.
Does anyone know what is going wrong and how to overcome this problem.

Replies are listed 'Best First'.
Re: Registering Perl on XP failure
by CountZero (Bishop) on Jul 12, 2010 at 08:07 UTC
    Ae you sure you were running under full administrator rights? On XP not all administrators are created equal, some are more equal than others.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re: Registering Perl on XP failure
by cdarke (Prior) on Jul 12, 2010 at 11:33 UTC
    One possibility is that you might need write access to the registry key HKEY_CLASES_ROOT.
    Assuming perl is installed in C:\Perl, from the cmd.exe command line:
    SET PATH=%PATH%;"C:\Perl" ASSOC .pl=Perl FTYPE Perl="C:\Perl\bin\perl.exe" "%1" %*
    If you find this is only temporary, when it does not work then use the ASSOC and FTYPE to see what else is happening, if anything. Failing that you can always put the above into a .bat file and run it from a short-cut with something like:
    %comspec% /k "C:\runperl.bat"
    that's what I do when I have more than one Perl version installed.
      Thanks for all those comments and suggestions.
      Should the script work for windows 7?
Re: Registering Perl on XP failure
by Anonymous Monk on Jul 12, 2010 at 08:44 UTC
    The system would allow me to assign the association and did not give any error messages.

    Not even in Event Viewer/Security?