I was glad to see that you received an answer that worked. Unfortunately,
someone like me (whose server doesn't show where winword exists or someone
who doesn't have the authority to reset paths) still wouldn't know what to
Try the following command and let me know if it works as well:
x "start winword.exe";
It worked for me!
On Wed, 9 Jan 2008 15:49:25 -0800, Huang, Ya <Ya.Huang@AMYLIN.COM> wrote:
>I tried it and it worked!
>From: Ken Barz [mailto:Ken.Barz@cpcmed.org]
>Sent: Wednesday, January 09, 2008 3:38 PM
>To: Huang, Ya
>Subject: RE: x command to start a window program with the full path?
>I believe that you can add C:\Program Files\Microsoft Office\OFFICE11 to
>the windows path variable. This is found under the advanced tab in the
>system properties window, button called Environment Variables.
>From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Ya
>Sent: Wednesday, January 09, 2008 4:26 PM
>Subject: x command to start a window program with the full path?
>x "'C:\Program Files\Microsoft Office\OFFICE11\winword.exe'";
>Is there a way to configure windows, so that when I use x command in
>SAS, I don't have to give the full path of the windows program?
>The first line won't work. The second line works.
>There must be a way, since I can type in the program name in the
>start/run window without having to give the full path.