Hi all,
i have an application for which i have created help files which are html files. my application resides in a directory for which the system path comes out as
c:\Document and settings\visual studio 2005\crms\crms\bin\debug\crms.exe
I have the help files put under the crms directory which has the bin as its sub directory.
i.e. c:\Document and settings\visual studio 2005\crms\crms\help\main.html
In my application i would like to access this file and launch it in Internet Explorer. I dont want to hard code it as this will be deployed on a terminal server and therefore i would like to use a relative path. I searched on the net and could only find solutions that used Application.StartupPath or few others which point to the exe file.
I tried extracting the path before that and managed to get a substring which held contained c:\Document and settings\visual studio 2005\crms\crms\
To this appended the \help\main.html, i tried launching the file as follows
System.Diagnostics.Process.start("iexplore",s);
where s, stores the appended string. This is the error i get, cannot open file at location
c:\Document%and%settings\visual%studio%2005\crms\crms\help\main.html
Its not liking the space in the path, is there anyway to resolve this.
Any suggestion would be much appreciated.
cheers
abhi
i have an application for which i have created help files which are html files. my application resides in a directory for which the system path comes out as
c:\Document and settings\visual studio 2005\crms\crms\bin\debug\crms.exe
I have the help files put under the crms directory which has the bin as its sub directory.
i.e. c:\Document and settings\visual studio 2005\crms\crms\help\main.html
In my application i would like to access this file and launch it in Internet Explorer. I dont want to hard code it as this will be deployed on a terminal server and therefore i would like to use a relative path. I searched on the net and could only find solutions that used Application.StartupPath or few others which point to the exe file.
I tried extracting the path before that and managed to get a substring which held contained c:\Document and settings\visual studio 2005\crms\crms\
To this appended the \help\main.html, i tried launching the file as follows
System.Diagnostics.Process.start("iexplore",s);
where s, stores the appended string. This is the error i get, cannot open file at location
c:\Document%and%settings\visual%studio%2005\crms\crms\help\main.html
Its not liking the space in the path, is there anyway to resolve this.
Any suggestion would be much appreciated.
cheers
abhi