Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / Run MS Word using ITERATEEXE()

Register 
新用户注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Run MS Word using ITERATEEXE()
#11659
Posted by: chucksim 2007-08-31 11:49:28 Last edited by: Jeff Glatt 2007-09-08 14:42:17 (Total edited 2 times)
I'm trying to open a MS Word document from my rexx script. I just do...
ITERATEEXE('Open','C:\Net\H01234_EQREPORT.DOC', , , , 'A')
The file is opened with Word, but when I try to close Word, it hangs up and I have to go to the Task Manager to end it.

ITERATEEXE seems to work ok with other file types. And I can open the file by double clicking on it and Word closes normally.
Chuck Simmons
Message2.
#11661
Posted by: Michael S 2007-08-31 12:51:52 Last edited by: Jeff Glatt 2007-09-08 14:44:49 (Total edited 1 time)
I do this instead:
err = ITERATEEXE('winword.exe', 'C:\Net\H01234_EQREPORT.DOC', , , , 'M')
IF err \== "" THEN guisay(err )
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2021-4-14  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0