How can I solve WordPad not being a "valid Win32 application"?

1

Somehow in trying to cleanup my computer's hard drive, I have inadvertently corrupted WordPad, which I have long used for viewing many types of files, including logs (i.e., log4j).

Now, when I right click one of these files and choose "Open with" and "WordPad", I get an error:

fn is not a valid Win32 application).

I've researched this issue, tried reinstalling wordpad.exe, but I still get the same error.

user31546

Posted 2010-03-18T14:04:26.600

Reputation: 111

1This isn't programming related, should be moved to SuperUser – Ben Everard – 2010-03-18T14:05:07.827

is "fn is not a valid Win32 application" the actual error text? sounds like you've corrupted the file association or other registry keys, not the actual WordPad application. not sure how you'd fix it though. – quack quixote – 2010-03-18T16:10:03.363

Substituted "fn" for the actual file name, but otherwise the message is accurate. Suspect you are correct about corrupting something other than the application, which still works. It's the right click and open with that doesn't work now. Don't have any idea how to fix whatever is causing this problem. Notepad is okay, but I prefer Wordpad because it doesn't "wrap" lines. – user31546 – 2010-03-19T15:15:39.433

@user31546 you can disable word wrap in Notepad, just uncheck "Word Wrap" under the Format tab. – Breakthrough – 2012-04-27T20:51:02.873

Answers

1

I would suggest you an alternative like Notepad++

Michael B.

Posted 2010-03-18T14:04:26.600

Reputation: 851