Hi,
i would like to build a class for initializing programs at windows ce startup
i managed to do that by using this code:
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Win32;
using System.Runtime.InteropServices;
using System.Collections;
using System.Threading;
using System.Security;
using System.Reflection;
namespace RegConfig
{
class Program
{
static void Main(string[] args)
{
RegistryKey reg = Registry.LocalMachine.OpenSubKey(@"Init", true);
reg.SetValue("Launch52", "\\Storage Card\\OpenIntApp\\OpenIntApp\\bin\\Release\\OpenIntApp.exe", RegistryValueKind.String);
reg.Flush();
reg.Close();
Console.WriteLine("registry set");
}
}
}
the thing is that i would like to make a class that will only get the file i need to initialize and that will do all the rest.
to do that i first need to be able to check if the "Lunchxx" already exists (so i wouldn't overwite existing one)
second, i guess i would use a "for" loop to scan the Lunch that are available, if for example i am at x=50, how can i ask if Lunch50 is available? (x is an integer and Lunch50 is a string)
i have a third question but i guess i should start with that :)
Thx in Advanced!