C:\>assoc .pl .pl=pl_auto_file C:\>ftype pl_auto_file pl_auto_file="c:\perl\bin\perl.exe" "%1"