First of all I want you all to know that I'm very new to C# so I may not be doing this correctly.
I am using 2005 C# 2.0 .Net version
I am currently collecting data from a power monitor and storing that data into a SQL database.
What I would like to do is have C# create a folder with the folder name of Power Monitor and then create a subfolder of the current month as the folder name and within that subfolder, save the database file with the day as the file name.
I have that part working (at least I think I do). What I am needing help with is trying to make this automated so that once the program executes it will update/create these folders/files on its own.
My thinking is that I need to include an If statement within my program. I have researched and tried various ways but I can't seem to get it working properly. Here is the code I have so far:
public partial class Form1 : Form