Thanks Ken,

The open process works except I found a problem which may also have been my problem earlier.  I discovered that if I have a space in the path to the document, I get an error message.  In this case MS Word opens but I get a dialog box saying the file name or path is invalid.  For example, if the file is named "myfile.doc" this statements works:

open process "c:/program files/Microsoft Office/Office10/Winword.exe c:/myfile.doc"

If, however, the document name is "my file.doc" and I try:

open process "c:/program files/Microsoft Office/Office10/Winword.exe c:/my file.doc"

it does NOT work.  I get the error message instead.  Maybe Scott will know why it doesn't work if there is a space in the name.  I am using MC 2.4.3.

Philip


Philip,

Try using "open process" instead; using the syntax:

  open process <appPathWithParams>

where <appPathWithParams> is a quoted string with two parts: the path to the
application, a space, and then the path to the document. For example, to
load up Word with a doc on C: called "test.doc", you would do this:

  open process "c:/program files/Microsoft Office/Office10/Winword.exe
c:/test.doc"

Not only does this launch it, but you can then "control" the process from
MetaCard if you wish (check out openProcesses, kill, etc.).

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/


Reply via email to