Créer un raccourci à partir d'un chemin réseau en mode web
J'utilise cette méthode pour créer un raccourcis :
Code:
1 2 3 4 5 6 7 8 9 10 11
|
public static void CreateShortcut(String sourceFile, String shortcutName, String shortcutLocation)
{
WshShellClass wsh = new WshShellClass();
IWshShortcut shortcut = (IWshShortcut)wsh.CreateShortcut(shortcutLocation + "\\" + shortcutName + ".lnk");
shortcut.TargetPath = sourceFile.ToString();
shortcut.Save();
} |
Elle fonctionne très bien sauf dans le contexte d'un site et quand j'utilise des chemins réseaux.
Un réglage à faire dans IIS ?
merci