As you know a file name .EXE is a Executable file and can run a code. this guide will teach you how to make a .TXT Executable that can run any code you want..
STEP1
download TXT Icon pack: download from here -
STEP2
Open a new file, Right click - New - Shortcut
Type the location of the item: "X:\WINDOWS\system32\cmd.exe /c file.txt" ("X"=Driver)
and name it "readme.txt"
STEP3
after creating the readme.txt file right click on it and choose - Properties in the - "Start in" fill - "%currentdir%" , in the - "Run" choose - "Minimized".
then change the icon with one of the TXT icons from the pack by right clicking the readme.txt file then - Properties - Change Icon...
STEP4:
In order to execute a file you need one.. just change your Server/Virus extension to .TXT and name it - "file.txt"
Now you have a .TXT Shortcut and .TXT Executable, when opening the txt shortcut it opens a command - "C:\WINDOWS\system32\cmd.exe /c test.txt" that executes the file you want.
Now you got a .TXT Executable!