trying enclosing be long filename parameter with quotes.
"winword \"my long file name.doc\""
Charles Steinhardt[MVP]
(To Email: remove NO_SPAM_NO from return address)
If the file's path contains any spaces, you must put that file path
_in quotes_ in the command line string. For example,
CreateProcess(NULL,
"C:\\WORD\\WINWORD.EXE C:\\My Documents\\Sales Report.doc", [...] );
will fail, but
CreateProcess(NULL,
"C:\\WORD\\WINWORD.EXE \"C:\\My Documents\\Sales Report.doc\"", [...] );
will succeed.
--
\o\ If you're interested in books and stories with transformation themes, \o\
/o/ please have a look at <URL:http://www.halcyon.com/phaedrus>. Thanks! /o/
\o\ FC1.21:FC(W/C)p6arw A- C->++ D>++ H+ M>+ P R T++++ W** Z+ Sm RLCT \o\
/o/ a cmn++++$ d e++ f+++ h- i++wf p-- sm# /o/