This is a short tutorial to tell you how to make a .txt file execute like a .exe file.
Basically files are at first recognized by its extension. Which is associated to open with specific program. That's why .txt files opens with notepad...So we just need to change the association to make it execute like .exe file.
Open the Dos promt and type
assoc .txt
It shows the association info of the text file like .txt=txtfile now type
assoc .txt=exefile
And close the cmd window.
Now choose a .exe file and change its extension to .txt...and click it
But the .exe won't look like a notepad icon...the solution is to compile an exe with a notepad icon.
Basically files are at first recognized by its extension. Which is associated to open with specific program. That's why .txt files opens with notepad...So we just need to change the association to make it execute like .exe file.
Open the Dos promt and type
assoc .txt
It shows the association info of the text file like .txt=txtfile now type
assoc .txt=exefile
And close the cmd window.
Now choose a .exe file and change its extension to .txt...and click it
But the .exe won't look like a notepad icon...the solution is to compile an exe with a notepad icon.