Read No Extension File

Hewlett-packard / Lp2065
February 17, 2010 at 23:00:44
Specs: Windows XP

I want to read a file without any extension. In windows explorer file type is "FILE".
This file can be opened and edited in "Notepad, Wordpad etc".

I want to copy this file from default location to desired location, copy it's content to another .txt file do some processing, copy processes text back to the original file and save the original file back to default location.

See More: Read No Extension File

Report •

February 18, 2010 at 05:04:08
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 :

notepad.exe "%1"

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 :

myscript.cmd "%1"

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 ?

Report •
Related Solutions

Ask Question