• Advertisement
Sign in to follow this  

Shell problem

This topic is 4651 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In vb.net, I'm trying to use a Shell command to open a help file called Help.chm. Even when the file path and name are explicitly stated, I get file not found errors. Why does this happen? On a side note, how do you specify the starting html document for a help file in the HTML Help Workshop program?

Share this post


Link to post
Share on other sites
Advertisement
I've used VB6 for yeeeears, but haven't gotten into VB.NET yet. I know this is not true in VB6, but since VB.NET has become more similar to C/C++ in various ways (the functionality more than the syntax), I'm wondering if maybe VB.NET now has character escaping in its strings? For example, is your string something like "c:\whatever\filename.chm", whereas it may need to be "c:\\whatever\\filename.chm"? Sorry for not having any VB.NET experience...

Share this post


Link to post
Share on other sites
I just checked, and vb.net sees "\\" as \\, so it's not a character escape problem.

Great guess though, I didn't even think of that one.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
System.Diognose.Proccess.Start( "winhlp32.exe", "filename.chm" )

This is also a gues!
filename.chm must be in same as .exe, or you need to give a full path.
winhelp32.exe is my program to watch *.chm files

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement