Cannot find the hlp File though File exists

nnCron and nnCron LITE discussion

Cannot find the hlp File though File exists

Postby UsingForth » Sun, 02 Sep 2007, 04:38

Hello,
From inside a nnCron Task, I tried to open an help file Win32.hlp that I located in
C:\Program Files\nnCron\Win32 Help folder

(This is a well known “Win32 Programmer’s Reference” Help File I just imported there)

Using FILE-EXIST: the Task found that the File exists but using START-APP: gives the following error message (captioned “Windows Help”):

Cannot find the “C:\Program Files\nnCron\Win32 Help\Win32.hlp” file. Do you want to try to find this file yourself?
<Yes> <No>

Answering Yes or No gives the same reaction: Error message disappears but nothing more apparently happens (Help file contents doesn’t appear).

I tried to open other imported .hlp files ( just to experiment with ) and I found that so far, the problem only appears with .hlp files.

Other .exe files are correctly loaded and executed.
Other .txt and other Text files are correctly opened.

OS used is Win98
My Computer/View/Folder Options/ File Types shows that:
“Help File” Registered File Type with Extension HLP is opened with “WINHLP32”

Double clicking onto the Win32.hlp File Icon from inside the
“C:\Program Files\nnCron\Win32 Help” folder opens the Help file correctly.

Could someone help me investigate to solve this?!

Here is the Task content:

Code: Select all
#( Development_Session_Start
NoActive
Action:
\ Does help file exist?
FILE-EXIST: "C:\Program Files\nnCron\Win32 Help\Win32.hlp"
IF
  MSG: "File do exist!"
ELSE
  MSG: "File doesn't exist!"
THEN

\  StartIn: "C:\Program Files\nnCron\Win32 Help"
START-APP: C:\Program Files\nnCron\Win32 Help\Win32.hlp

\ pausing the task until Win32.hlp is
\ fully loaded into computer memory
PROC-ID PROC-WAIT-IDLE
\ resuming the task
)#


Christian
UsingForth
 
Posts: 5
Joined: Mon, 13 Aug 2007, 03:04
Location: Belgium

Postby semko » Mon, 03 Sep 2007, 13:35

Check, if the extension .hlp is associated correctly to an application.
Open console, type "assoc .hlp" or in the explorer go to
Extras -> Folder options -> File types and search for HLP.

Sem
semko
 
Posts: 46
Joined: Sat, 08 Oct 2005, 17:42
Location: Germany

Postby UsingForth » Mon, 03 Sep 2007, 20:49

As I wrote, I checked the association to an application by means of:
My Computer -> View -> Folder Options -> File Types
That shows that:
“Help File” 'Registered File Type' with Extension HLP is opened with “WINHLP32”

So I presume that the .hlp files are correctly associated with the "WINHLP32" application which I found in C:\WINDOWS folder.

WINHLP32 executes correctly too.
Double-clicking WINHLP32 icon displays the "Windows Help" window asking me which file I want to open. I selected the
C:\Program Files\nnCron\Win32 Help\Win32.hlp and the Win32.hlp opens correctly.

Furthermore, I tried to follow your advice (Thanks for it, Sem!).
I opened the Console (nnCron Tool) and typed: "assoc .hlp" without the quotes, "assoc hlp", "assoc .HLP", "assoc HLP", assoc ".HLP", assoc "HLP, etc.
None were working: Console is still waiting for more characters from keyboard. I could not get back the Console prompt (not displaying the Ok anymore). So to leave (at once) the nnCron console, I had to type <Ctrl><c>

From nncron console, I typed:
WORDS-LIKE assoc

Console answered:
assoc (assoc)

BTW, I will soon Post, in this Forum, another msg about that kind of supposedly useful words:
Post Title will be something like:
"Looking for an exhaustive list of documented nnCron Console words"

So, right now, the next step is « How could I use the Word assoc ?”


Christian
UsingForth
 
Posts: 5
Joined: Mon, 13 Aug 2007, 03:04
Location: Belgium

Postby semko » Mon, 03 Sep 2007, 22:46

UsingForth wrote:Furthermore, I tried to follow your advice (Thanks for it, Sem!).
I opened the Console (nnCron Tool) and typed: "assoc .hlp" without the quotes, "assoc hlp", "assoc .HLP", "assoc HLP", assoc ".HLP", assoc "HLP, etc.


Oops, sorry for beeing unspecific. What I meant was open a command prompt for assoc .hlp, not the nncron console.
But now I understand you already checked the correct association for .hlp

I tried your script with another help file on my system and it opened as expected. So I have no idea why the code doesn't work for you.

There is one thing you could try: What happens when you use the START-APP line this way:
Code: Select all
START-APP: C:\Windows\system32\winhlp32.exe C:\Program Files\nnCron\Win32 Help\Win32.hlp


Sem
semko
 
Posts: 46
Joined: Sat, 08 Oct 2005, 17:42
Location: Germany

Postby UsingForth » Tue, 04 Sep 2007, 00:08

Perfect!
The following code is working correctly:

Code: Select all
#( Development_Session_Start
NoActive
Action:
\  START-APP: C:\Windows\system32\winhlp32.exe C:\Program Files\nnCron\Win32 Help\Win32.hlp
START-APP: C:\Windows\winhlp32.exe C:\Program Files\nnCron\Win32 Help\Win32.hlp
)#


REM. I just corrected a little bit your proposition of code as in my System (based Win98), there is only one winhlp32.exe It is located into C:\Windows folder.

So the main and good thing is that it's working.
Thanks to you, Sem!

Now, I wonder what the reason is that I could not open directly those .hlp files by means of:
Code: Select all
START-APP: C:\Program Files\nnCron\Win32 Help\Win32.hlp

Now, I know I have to check something related to association with application.
Will that happen also with some other documents? Which File Types will be concerned?!

Thank you again for your help!


Christian
UsingForth
 
Posts: 5
Joined: Mon, 13 Aug 2007, 03:04
Location: Belgium


Return to nnCron forum (English)

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron