[DUG] D2006

John Bird johnkbird at paradise.net.nz
Mon Dec 19 16:10:33 NZDT 2005


Shellexec question I think this has turned into....

Thanks - that one works the best yet!  What a Windows kludge needed eh!,
calling the DOS subsystem in order to show a windows help file.  I reckon
its going to be a long day before MS remove DOS from Windows if there is
functionality like this that can't be done any other way.

(for the record I had tried permutations in the command line like

CMD with parameters /C "C:\Program Files\borland\Delphi5\Help\delphi5.hlp"
and even CMD /C START "C:\Program Files\borland\Delphi5\Help\delphi5.hlp")

In case you didn't know, from a CMD window you should be able start any
windows or web file via the Start command, eg At the CMD prompt:

START WWW.IMDB.COM 

for instance, but when called (eg from a program using Shellexec) often you
have to do it from a batch file - go figure! Is there really no other way to
call up a non .exe file with a known Windows file extension association?? (I
am assuming this is Shellexec behind the scenes)

Other tools I have configured for opening and just inspecting source files
not in the current project is

D:\PROGRAMS\EditPlus\editplus.exe

With parameters  -d D:\SRCD2006  for instance

(Excellent editor with Delphi syntax highlighting built in)

And also

EXPLORER.EXE

With parameter  D:\SRCD2006  for browsing folders

John


-----Original Message-----
From: Cleon Pinto [mailto:capinto at gmail.com] 
Sent: Monday, 19 December 2005 3:32 p.m.
To: johnkbird at paradise.net.nz; NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] D2006


Not the best solution... but this works for me

create a cmd file which contains:

@start "" "C:\Program Files\borland\Delphi5\Help\delphi5.hlp"


and call that from the tools menu

hope it helps a little :)

cheers
Cleon.

On 12/19/05, John Bird <johnkbird at paradise.net.nz> wrote:
> That sort of works, that is I get a spurious IE window open with
> "Action cancelled" and a warning dialog from SP2 about am I sure I 
> want to run this file every time, then it does open......is there no 
> more direct way to open a help file???
>
>
> John
>
>
> Try something along the lines of
>
> C:\Windows\hh.exe as the exe to run
> C:\Program Files\borland\Delphi5\Help\delphi5.hlp as the parameter to
> it.
>
> HTH,
>
> Conor
>
> -----Original Message-----
> From: delphi-bounces at ns3.123.co.nz
> [mailto:delphi-bounces at ns3.123.co.nz] On Behalf Of John Bird
>
> Accessing older help for D2006
>
> I have a cunning plan....I tried adding to the Tools menu a tool
> saying
>
>  "c:\Program Files\borland\Delphi5\Help\delphi5.hlp"
>
> But this does not work.....it complains of cannot execute this (error
> 2) I tried a few variations as well (setting working dir etc but it 
> also does not like this)... any suggestions?  I think the problem is 
> that the tool has to be an .exe file, and any of the usual tricks such 
> as start Delphi5.hlp or cmd /c delphi.hlp don't work either...
>
> [snip]
>
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz http://ns3.123.co.nz/mailman/listinfo/delphi
>
>
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz http://ns3.123.co.nz/mailman/listinfo/delphi
>




More information about the Delphi mailing list