G
Guest
Hi Guys and Girls,
I have a situation where I am wishing to deploy a .NET dll onto a number of
servers. The classes in the DLL will be used by VBScripts. When one of the
classes - Connection - is instantiated from a VBScript the code looks to a
simple text file for initialisation of certain variables. I want this text
file to reside with the dll when it is installed (via a setup project) and
have the file opened by the Connection class in the installation directory.
At the moment I have:
StreamReader sr = new StreamReader(@"config.ini");
and I use this stream to read in values. However, the path I have specified
here will be looking, when the object is made in the VBscript, where the
VBScript is located. How can I get it to look at the installation directory?
Any suggestions would be good,
Thanks,
Jesse
I have a situation where I am wishing to deploy a .NET dll onto a number of
servers. The classes in the DLL will be used by VBScripts. When one of the
classes - Connection - is instantiated from a VBScript the code looks to a
simple text file for initialisation of certain variables. I want this text
file to reside with the dll when it is installed (via a setup project) and
have the file opened by the Connection class in the installation directory.
At the moment I have:
StreamReader sr = new StreamReader(@"config.ini");
and I use this stream to read in values. However, the path I have specified
here will be looking, when the object is made in the VBscript, where the
VBScript is located. How can I get it to look at the installation directory?
Any suggestions would be good,
Thanks,
Jesse