Creating shortcuts on the public desktop
Published: March 1, 2016 - 2:18 PM
Good morning,
I'm stuck on creating a shortcut in a folder on the public desktop. `mkdirs` correctly creates the "Miscellaneous" folder, but then neither of the two `create_shortcut` lines adds a shortcut...
I'm stuck on creating a shortcut in a folder on the public desktop. `mkdirs` correctly creates the "Miscellaneous" folder, but then neither of the two `create_shortcut` lines adds a shortcut...
Code: Select all
if not isdir(makepath(common_desktop(),'Logiciels','Divers')):
mkdirs(makepath(common_desktop(),'Logiciels','Divers'))
create_shortcut(makepath(common_desktop(),'Logiciels','Divers','Ebeam Home'),target=u'C:\Program Files (x86)\Luidia\eBeam Interactive Suite\eBeamHome\eBeamHome.exe')
create_shortcut(makepath(common_desktop(),'Logiciels','Divers','Ebeam Home'),target=makepath('C:\\','Program Files (x86)','Luidia','eBeam Interactive Suite','eBeamHome','eBeamHome.exe'))