Sorry for this very basic question, but I really don't know where to look for an answer: how do you define a user command to open a file with a specific application, e.g. Word?
This doesn't work for Word:
>"C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE" $N
Nor does $P instead of N.
Word is started, but the file isn't opened, instead you get an error message.
Is there something with DDE that should be added?
MTIA.
user command to open file in Word
Moderators: fgagnon, nikos, Site Mods
-
- Member
- Posts: 46
- Joined: 2008 Mar 16, 08:46
- Contact:
-
- Member
- Posts: 46
- Joined: 2008 Mar 16, 08:46
- Contact:
Yes, winword proves possible as well. And I thought maybe the quotes might help.
But all I get is a strange and exceptionally uninformative error message in Word.
I'd been fiddling with file associations (have double click open docs with Open Office, and have "edit file" open them with Word etc.), but I'd think that doesn't effect the command in xplorer2.
Anyway, it doesn't help if I set file associations back either.
Weird.
But all I get is a strange and exceptionally uninformative error message in Word.
I'd been fiddling with file associations (have double click open docs with Open Office, and have "edit file" open them with Word etc.), but I'd think that doesn't effect the command in xplorer2.
Anyway, it doesn't help if I set file associations back either.
Weird.
What does it say? Your earlier suspicion of DDE is usually more associated with Excel than Word - but that said, I seem to have a few entries which had /DDE tacked on the end of them when referring to Word-oriented things.franklekens wrote:But all I get is a strange and exceptionally uninformative error message in Word.
What does the entry under HKEY_CLASSES_ROOT\Word.Document.12\shell\Open\command look like?
-
- Member
- Posts: 46
- Joined: 2008 Mar 16, 08:46
- Contact:
The reg key says
"C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE" /n /dde
The error message is in Dutch. It runs something like "error opening file", and "check file authorizations for document or station", check memory space bla bla, open file with conversion function for text repair. The latter are useless, there are no memory issues and the files aren't corrupted.
"C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE" /n /dde
The error message is in Dutch. It runs something like "error opening file", and "check file authorizations for document or station", check memory space bla bla, open file with conversion function for text repair. The latter are useless, there are no memory issues and the files aren't corrupted.
-
- Member
- Posts: 46
- Joined: 2008 Mar 16, 08:46
- Contact:
Yes, opening through the context menu works fine.
Substituting winword with the full line as found in the registry doesn't help.
And quotes don't help as yet either.
If I go to the file association dialogue of windows explorer, you can check a box where it says "use dde", and there is also a field there where you can add text, and there it says
[REM _DDE_Direct][FileOpen("%1")]
I wonder if that should be added to the command line.
(It's all Greek to me.
Substituting winword with the full line as found in the registry doesn't help.
And quotes don't help as yet either.
If I go to the file association dialogue of windows explorer, you can check a box where it says "use dde", and there is also a field there where you can add text, and there it says
[REM _DDE_Direct][FileOpen("%1")]
I wonder if that should be added to the command line.
(It's all Greek to me.
-
- Member
- Posts: 46
- Joined: 2008 Mar 16, 08:46
- Contact:
Well this is plain fascinating.
To extend the discussion back to the topic at hand and report back: I was perfectly able to create a user command like this for Open Office.
I fiddled around with the Windows file associations some more, and there probably *was* a DDE problem, at least when doc files weren't associated primarily with Word. But all is well now, kind of. Thanks for the input.
To extend the discussion back to the topic at hand and report back: I was perfectly able to create a user command like this for Open Office.
I fiddled around with the Windows file associations some more, and there probably *was* a DDE problem, at least when doc files weren't associated primarily with Word. But all is well now, kind of. Thanks for the input.