This should work:
wd 'winexec *"C:\Program Files (x86)\Microsoft
Office\OFFICE11\winword.exe" "d:\aaaa_temp\test winword.doc"'

Alternatively you could also use the task utilities:
load 'task'
_1 fork '"C:\Program Files (x86)\Microsoft Office\OFFICE11\winword.exe"
"d:\aaaa_temp\test winword.doc"'

Note that there has been some recent traffic on the forum about problems
with the task script under win64. I haven't followed it very closely but
got the impression that it now works OK.

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of William Szuch
> Sent: Monday, 11 February 2008 14:47
> To: J Beta Forun
> Subject: [Jbeta] J602 ibeta win64 - winexec and winword
> 
>  
> 
> The following statement opens WINWORD 
> 
>  
> 
> wd 'winexec "C:\Program Files (x86)\Microsoft 
> Office\OFFICE11\winword.exe"'
> 
>  
> 
>  
> 
> EXAMPLE 1
> 
> =========
> 
> The following statement opens WINWORD and a document :
> d:\aaaa_temp\test_winword.doc
> 
>  
> 
> wd 'winexec "C:\Program Files (x86)\Microsoft 
> Office\OFFICE11\winword.exe
> d:\aaaa_temp\test_winword.doc "'
> 
>  
> 
> EXAMPLE 2
> 
> =========
> 
>  
> 
> The following statement opens WINWORD and BUT NOT the document :
> d:\aaaa_temp\test winword.doc  NB. Space in name
> 
>  
> 
> wd 'winexec "C:\Program Files (x86)\Microsoft 
> Office\OFFICE11\winword.exe
> d:\aaaa_temp\test winword.doc "'
> 
>  
> 
>  
> 
> I have tried various combinations in using  " but all 
> attempts have failed 
> 
>  
> 
> Seems to be a problem with spaces.
> 
>  
> 
> Regards
> 
> 
> Bill Szuch
> 
> 
> 
>  
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to