|I guess I know what you mean, but the hardest point is to assign an action to a given file. In theory, when you open a file with notepad, what he does is :|
Where %1 is the name of the file you double-click. So, you at least need a script, that will accept parameter one as the name of the script to be processed. Then you could do this :
But, still, you need Windows to tell to launch this script when you double-click. Easiest would be to just link the type of the file, but then he will do that with all files with that extension, maybe not what you want.
What you problably want, is to right-click the file, and get the traditional option, but somewhere in there, to launch "myscript.cmd" with this file ... similarly to WinZip stuff etc.
That last thing is possible, I'm pretty sure, just need to tweak the registry ... but how ?