Zdravim delam pod xp, a posousim pre prekopirovat/vytvorit ikonu na plose z
C:\Dokument and Settings\user\Nabidka Start\Programy\program
chci do dostat na plochu.
string desktopPath = string.Empty;
desktopPath = string.Concat(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "\\program");
string shortcutName = string.Empty;
shortcutName = string.Concat(Environment.GetFolderPath(Environment.SpecialFolder.Programs),"\\program");
System.IO.File.Copy(shortcutName, desktopPath, true);
Ale bohuzel mi v v
System.IO.File.Copy(shortcutName, desktopPath, true);
vyhodilo vyjimku Acces C:\Document and Settings\Nabidka Start\Programy\program is denied.
Kdyz u xp bych mel met prava primarne jako admin, tak nevim proc to pada