I’d like to give the user the opportunity of opening MS WordPad from inside my Windows 7 desktop application with a button. After reading what I could find on the subject, I was able to launch Notepad OK with:
dim f as FolderItem
f= SpecialFolder.Extensions.child("Notepad.exe")
f.Launch
Like I said, this works fine but Notepad doesn’t do the things with formatting that I need … Wordpad does. So, I found this code that supposedly would open Wordpad:
dim f As FolderItem
f = GetFolderItem("C:\\Program Files\\Windows NT\\Accessories\\wordpad.exe")
And although the folder path is correct (I checked it on my Windows 7 system and that is where the Wordpad.exe file is located), executing this code does NOTopen Wordpad (or do anything for that matter … including no errors thrown).
Could someone please point me in the right direction of what I need to do to launch Wordpad successfully.
Thanks in advance for your help!