Shell problem

Started by
3 comments, last by gamechampionx 18 years, 11 months ago
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?
Check out Drunken Brawl at http://www.angelfire.com/games6/drunken_brawl!
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...
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.
Check out Drunken Brawl at http://www.angelfire.com/games6/drunken_brawl!
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
Thanks, I'll try that.
Check out Drunken Brawl at http://www.angelfire.com/games6/drunken_brawl!

This topic is closed to new replies.

Advertisement