I m creating a windows service which will monitor the drives for free space.
Here is my work flow :
1. on start check if configuration.xml exist in the installation folder,
2. read the list of volumes from xml (It will be like C:, D:, E: , once each line).
3. After reading the xml, start one thread for each drive.
I have my code which works fine if i use the drive letter hard coded, I m able to read the xml and reader.value outputs the drive letters just fine.
I am stuck on how to call the thread with drive letter as an argument and run for all drives at same time.
Can you suggest a way?