I'm totally new to C#. I just started working on my first program today.
Basically what I'm trying to do is create an application that, when executed, will grab files from the registry and place them into a notepad file (and then later on possibly have it set to email this file to me).

I have created the console application file (using SharpDevelop) and a batch file. My question now is, what do I do with it? How do I get the batch file in with the actual application program? I just want to create the program so i can send it to someone and when they open it, it will execute automatically. Or, if possible, I'd like for it to be a web application...as in when someone goes to a link, the program will execute from there.

This is the code I have so far:
using System;
using Microsoft.Win32;

class reg
{
static void Main()
{
RegistryKey hklm =Registry.LocalMachine;
hklm=hklm.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0 ");
Object obp=hklm.GetValue("Identifier");
Console.WriteLine("Processor Identifier :{0}",obp);

RegistryKey hklp =Registry.LocalMachine;
hklp=hklp.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0 ");
Object obc=hklp.GetValue("VendorIdentifier");
Console.WriteLine("Vendor Identifier :{0}",obc);

RegistryKey biosv =Registry.LocalMachine;
biosv=biosv.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\MultiFunctionAdapte r\\4");
Object obv=biosv.GetValue("Identifier");
Console.WriteLine("Bios Status :{0}",obv);

RegistryKey biosd =Registry.LocalMachine;
biosd=biosd.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\");
Object obd=biosd.GetValue("SystemBiosDate");
Console.WriteLine("Bios Date :{0}",obd);

RegistryKey bios =Registry.LocalMachine;
bios=bios.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\");
Object obs=bios.GetValue("Identifier");
Console.WriteLine("System Identifer :{0}",obs);

string x = Console.ReadLine();
}
}
Like I said, I have the batch file and everything created. Now what do I do with it? Any help is greatly appreciated.

Thanks in advance.