I'm opening wordpad through my application. The application is used on multiple platforms. I need to find the path to locate wordpad and store in a variable which I can pass using the shell command. Any help will be appreciated.

'get path and assign to variable
'i = shell(variable,1)
'Instead of hardcoding as below
i=shell ("C:\Program Files\Windows NT\Accessories\wordpad.exe",1)