Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 win2k, how to change file ext back to ori?

views
     
TSkarmakid
post Jun 7 2006, 06:10 PM, updated 20y ago

Look at all my stars!!
*******
Senior Member
2,598 posts

Joined: Jan 2003
From: PJ


hi guys,

i have a perl command residing in one of my win2k pc.

as you all know, it's abc.pl and it's an executable file.

however, one of my friends accidentally help me open it with text file and choose "open .pl file with notepad always".

it has then change to a text format. When i double click on the abc.pl, it will auto open in notepad, and not help me to run the pl script command.

how can i reserve it back?
kb2005
post Jun 7 2006, 06:16 PM

Yahoo!
********
All Stars
17,875 posts

Joined: Jan 2005



Right click the perl script file (*.pl), choose open with, choose program (select perl). Then it will back to normal. Hope it helps.
mystical zero
post Jun 7 2006, 06:25 PM

Enthusiast
*****
Senior Member
876 posts

Joined: Nov 2005
From: /root/Melbourne


Go to Tools>Folder Options in Windows Explorer.
Click the File Types tab.
Under the extensions column, look for PL.
Click the "Delete" button.
Then press the "New" button.
Enter "PL" in the "File extension:" box, then click OK.
Once it appears in the list, click "Advanced", then click "New..."
For action, type "&Open".
For "Application used to perform action:", input the path to your Perl Interpreter, then %1, along with any parameters if necessary.
Example: C:\Perl\bin\perl.exe %1
Then click OK.
"Open" will appear in the list. Now click the "Set Default" button.
If the button is disabled, just click "OK".
Click "Close" again when you are done.

This fully repairs the icon of the file type itself.
TSkarmakid
post Jun 8 2006, 10:24 AM

Look at all my stars!!
*******
Senior Member
2,598 posts

Joined: Jan 2003
From: PJ


QUOTE(kb2005 @ Jun 7 2006, 06:16 PM)
Right click the perl script file (*.pl), choose open with, choose program (select perl). Then it will back to normal. Hope it helps.
*
yeap, tried it and it works. thx.

QUOTE(mystical zero @ Jun 7 2006, 06:25 PM)
Go to Tools>Folder Options in Windows Explorer.
Click the File Types tab.
Under the extensions column, look for PL.
Click the "Delete" button.
Then press the "New" button.
Enter "PL" in the "File extension:" box, then click OK.
Once it appears in the list, click "Advanced", then click "New..."
For action, type "&Open".
For "Application used to perform action:", input the path to your Perl Interpreter, then %1, along with any parameters if necessary.
Example: C:\Perl\bin\perl.exe %1
Then click OK.
"Open" will appear in the list. Now click the "Set Default" button.
If the button is disabled, just click "OK".
Click "Close" again when you are done.

This fully repairs the icon of the file type itself.
*
wow, thx. it's very good for my future references.
sad part is, there's isnt any PL file inside. dunno why. so i cant make the changes in there.

 

Change to:
| Lo-Fi Version
0.0181sec    1.23    5 queries    GZIP Disabled
Time is now: 21st December 2025 - 02:40 PM