Jump to content

Run Files with a Sham Extension via Batch Script


Serial Killer

Recommended Posts

Serial Killer

Hello, I have posted this tutorial as "Majid Pasha" in computing.net, Now I have decided to send it here, maybe It can help more people...

I want to learn you How to "Run files with a sham extension via batch script", for example you can change a text file extension to whatever you want, then run it properly!

Note: The good point of this way is that the new extension won't be changed at all. for example if you change .txt to .tsk , after running this code the extension will be .tsk without changing and you have your text file ran.

Now Think you have Me.txt, now you change its extension to mjk, then you have Me.mjk that won't be run at all. Here is the code to run such files:

assoc.ext=winfile

Start "" "Path\File.ext"

assoc.ext=extfile

Note: Do not change the format of this code, it should be like this.

Note: Replace "ext" with your own extension of your file, for example tsk. It can be more than 3 digits too.

Note: Replace "win" with a know extension in windows. for example txt or exe or cmd etc.

Example:

I have a text file which is located in C:\Info\, the filename is Killer.txt, Now I want to change its extension to tsk (The Serial Killer), then I have Killer.tsk, Now I can not run it :( So I should try my code in scripts :)

assoc.tsk=txtfile

Start "" "C:\Info\Killer.tsk"

assoc.tsk=tskfile

Now I can run my text file without changing its extension to .txt again. and as I told it before in the first Note it is the good point of this trick.

NOTE: This Trick is made by me, I read something like this trick sometimes ago, I have change it to a more greater trick, so This trick is made by me all over the net for the first time, remember this please ;)

NOTE: Please if you have learned something new and Useful from this tut, do not forget to VOTE (+1) it, By this way I can know how many people used my tut, Thanks :)

NOTE: Also It would be great if you can vote my tut, then I can know how much my tut is useful or great, Thanks :)

Link to comment
Share on other sites


  • Replies 1
  • Views 1.2k
  • Created
  • Last Reply
Serial Killer

I will VOTE (+1) every reply which tell me a Usage of this Trick ;)

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...