TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Subject:WinHelp running programs From:Bruce WHITE <WHITE -at- MSN -dot- COM> Date:Wed, 22 May 1996 23:33:33 UT
Martyn Thirlway <thirlwaym -at- USOFT -dot- NL> said on the
subject. (it was "winhelp blues", but I didn't like that colour).
>>the old ExecProgram macro (now EF for 4.0)
>>did not look after directories, so you had to do
>>this yourself by specifying the directory path as
>>well as the filename,
The subtle difference with EF (ExecFile)is that all the macro has to do is
find the file. Imagine it is called my.doc.
The user, in Windows Explorer, has made an association of the extension (.doc)
with _whatever_ they are using for a word processor. So the effect of EF is
the same as if it had been double clicked in Explorer.
To do the same thing with ExecProgram meant calling the Word processor and
passing it a file. This was difficult with people not always using Winword or
having it in the path. eg. ExecProgram("winword.exe my.doc", 0)
>>I have hard-coded the path into the macro.
A relative path? I suspect that your installation has the option to change an
absolute path (most do).
BTW have a look at how ShellExecute works as well.
I hope this helps...
WinHelp IT Editing
white -at- msn -dot- com
go WHITEbook on MSN
Post Message: TECHWR-L -at- LISTSERV -dot- OKSTATE -dot- EDU
Get Commands: LISTSERV -at- LISTSERV -dot- OKSTATE -dot- EDU with "help" in body.
Unsubscribe: LISTSERV -at- LISTSERV -dot- OKSTATE -dot- EDU with "signoff TECHWR-L"
Listowner: ejray -at- ionet -dot- net