assoc .pl ftype perlfile Replace "perlfile" with whatever .pl returned #### "D:\Perl\bin\perl.exe" "%1" %* #### ftype perlfile="D:\Perl\bin\perl.exe" "%1" %*