Thanks for replying back.
I should of be clearer, I want to drop the %postname% and replace it with a variable value called filename. This variable (will be set for each post) will than be added to the permalink.
So that the end result will be /%category%/%filename%.html
Any help provided, is greatly appreciated.
Thanks