Aggiungere un parametro alla destinazione di una scorciatoia
Pubblicato: 17 maggio 2017 - 11:41
Ho notato che in un software il collegamento che ho creato usando "create_shortcut" non funzionava a causa di un parametro presente nel percorso di destinazione del collegamento "ufficiale". Il percorso di destinazione del collegamento del menu Start, creato dall'installazione del software, è:
"C:\Program Files (x86)\CASIO\GRAPH 35+ Manager PLUS\ManagerPLUS.exe" /n"GRAPH 35+ Manager PLUS".
Ma non riesco ad aggiungere questo /n "GRAPH 35+ Manager PLUS" alla funzione create_shortcut; mi dà un errore:
com_error: (-2147024809, 'Parametro errato.', Nessuno, Nessuno)
create_shortcut(makepath(common_desktop(),'Software','Mathematics','35+ Manager+.lnk'),target=r'%s\CASIO\GRAPH 35+ Manager PLUS\ManagerPLUS.exe /n "GRAPH 35+ Manager PLUS"' %programfiles32, wDir=r'%s\CASIO\GRAPH 35+ Manager PLUS\\' %programfiles32,icon=r'%s\CASIO\GRAPH 35+ Manager PLUS\ManagerPLUS.exe' %programfiles32)
"C:\Program Files (x86)\CASIO\GRAPH 35+ Manager PLUS\ManagerPLUS.exe" /n"GRAPH 35+ Manager PLUS".
Ma non riesco ad aggiungere questo /n "GRAPH 35+ Manager PLUS" alla funzione create_shortcut; mi dà un errore:
com_error: (-2147024809, 'Parametro errato.', Nessuno, Nessuno)
create_shortcut(makepath(common_desktop(),'Software','Mathematics','35+ Manager+.lnk'),target=r'%s\CASIO\GRAPH 35+ Manager PLUS\ManagerPLUS.exe /n "GRAPH 35+ Manager PLUS"' %programfiles32, wDir=r'%s\CASIO\GRAPH 35+ Manager PLUS\\' %programfiles32,icon=r'%s\CASIO\GRAPH 35+ Manager PLUS\ManagerPLUS.exe' %programfiles32)