Before you can issue the command, you need two pieces of information:- The complete path to the Microsoft Word program "WINWORD.EXE" on your computer,
and,
- the complete path to the "somefilename.DOC" file that you want WinWord.exe to open.
For example, here on this XP computer running Microsoft Word 2003, "winword.exe" is located here:C:\Program Files\Microsoft Office\OFFICE11\winword.exe
and, let's say that the .DOC file I want to open is located here:C:\Documents and Settings\SpywareDr\My Documents\Fubar.DOC
So, the long, single-line command that I would type at the command prompt to open that Fubar.DOC file in WinWord.exe would be:
Code:
"c:\program files\microsoft office\office11\winword.exe" "c:\documents and settings\spywaredr\my documents\fubar.doc"
Or, if you just wanted to load WinWord.exe, (without opening a .DOC file), the command would be:
Code:
"c:\program files\microsoft office\office11\winword.exe"
Note 1: The double-quote marks are only required if the path and/or filenames contain any spaces.
Note 2: Windows doesn't really care about UPPERCASE/lowercase letters. (Like other Operating Systems such as *nix flavors do).