O'Reilly logo

Programming Windows® Services with Microsoft® Visual Basic® 2008 by Michael Gernaey

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Configuration Files

Using a resource file to store configuration information is not always the best solution. Therefore we will implement once last change to the service: We will add a configuration file.

Actually, we will create two configuration files. The first will be the application-specific configuration file that is supported by default in all .NET applications. This is where system and technology settings modify the behavior of the application. The other configuration file is an application-processing configuration file that will store information for preparing the options that the service will use to perform its tasks. Currently, we have three such options: Input, Output, and FileType.

We will use XML for both the application-processing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required