More safe solution just in case .doc is not associated to winword.exe and more then one word version is used.

Code:

$File = "G:\test.doc"
$App = "WinWord.exe"
$WordPath = ReadValue ("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Winword.exe", "Path")
Run $WordPath + "\" + $App + " " + $File

_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.