// Update AppDomain's Base Directory string root_path = "c:\\temp\\"; AppDomain.CurrentDomain.SetData("APPBASE", root_path); // Retrieve AppDomain's Base Directory AppDomain.CurrentDomain.BaseDirectory.ToString() // Update Environment's Current Directory Environment.CurrentDirectory = root_path;