Hi,
How can I remove a shortcut folder from Startmenu in Windows using C#, I know how to do that using this code:
private void RemoveShortCutFolder(string folder)
{
folder = folder.Replace("\" ", "");
folder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.StartMenu), folder);
try
{
if (System.IO.Directory.Exists(folder))
{
System.IO.Directory.Delete(folder, true);
}
else
{
}
}
catch (Exception)
{
}
}
But the problem that I need to remove one shortcut folder in ALL USERS folder, not the current logged user. Environment.SpecialFolder.StartMenu gives me the current user not all users folder.
Any idea,
Thanks,