I set my program to start in the windows startup using this code
RegistryKey registryKey = Registry.CurrentUser.OpenSubKey
("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
registryKey.SetValue("MY Program", "\"" + System.Reflection.Assembly.GetExecutingAssembly().Location + "\"");
my program works fine, but when it starts from the registry in startup (not by the user) it doent recofnize other files which be next to it.
what is the problem ?