I **really** don't get what you are trying to tell ..
Originally Posted by topsy99
Thank you for your time and great effort. it does work except that it only opens text files. e.g. if I save the htm file as a text file it will open but as an htm or html file it doesnt open.
What does that mean ??
Save an html file as "text" ?? With a ".txt" extension ? or what ??

And I have tested this script (again before posting this) .. it opens ANY FILE WITH ".HTM" or ".HTML" EXTENSION, WITH THE PREFIX SPECIFIED BY USER.

And, obviously the prefix is CaSe-SeNsItIvE.
We have not implemented any sort of technique in the code that would Brute-Force all possible cases for a prefix and would open a file.