I
ILCSP
Hello, I have a complete project in VB.NET (2003) with all the path to
the folders where the files being used are. For example I have these
variables:
' Setup Directory Paths
ImportDir = "C:\OrdersIn\"
ExportDir = "C:\OrdersOut\"
LogDir = "E:\OrdersLogs\"
This work fine right now. However, if for some reason in the near
future I have to move these folders to another drive, I will have to go
back to the VB.NET code and replace them there. What I would like to
do is create is a INI or XMF file with these paths and then use it in
my project. I'm hoping to also add more variable values such as the
connection string to the SQL database in our server.
Since I am fairly new to VB.NET. I have no idea where to start. How
can I set this paths in the file and how do I open/use the file in the
VB.NET code?
Thanks for your help.
the folders where the files being used are. For example I have these
variables:
' Setup Directory Paths
ImportDir = "C:\OrdersIn\"
ExportDir = "C:\OrdersOut\"
LogDir = "E:\OrdersLogs\"
This work fine right now. However, if for some reason in the near
future I have to move these folders to another drive, I will have to go
back to the VB.NET code and replace them there. What I would like to
do is create is a INI or XMF file with these paths and then use it in
my project. I'm hoping to also add more variable values such as the
connection string to the SQL database in our server.
Since I am fairly new to VB.NET. I have no idea where to start. How
can I set this paths in the file and how do I open/use the file in the
VB.NET code?
Thanks for your help.