Pré-requis :
Scripts :
- Création d'un raccourci relatif au logiciel IDEAL Administration
set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("AllUsersDesktop" )
set oShellLink = WshShell.CreateShortcut(strDesktop & "\MY IA.lnk" )
oShellLink.WindowStyle = 1
oShellLink.TargetPath = "C:\Program Files\Pointdev\IDEAL Administration\IA.exe"
oShellLink.WorkingDirectory = "C:\Program Files\Pointdev\IDEAL Administration"
oShellLink.Save
- Création d'un raccourci d'un fichier ".txt" qui s'éditera avec notepad
set WshShell = WScript.CreateObject("WScript.Shell" )
strDesktop = WshShell.SpecialFolders("Desktop" )
set oShellLink = WshShell.CreateShortcut(strDesktop & "\Shortcut Script.lnk" )
oShellLink.TargetPath = "notepad.exe"
oShellLink.WindowStyle = 1
oShellLink.Hotkey = "Ctrl+Alt+f"
oShellLink.IconLocation = "notepad.exe, 0"
oShellLink.Description = "Shortcut Script"
oShellLink.WorkingDirectory = strDesktop
oShellLink.Arguments = "C:\myFile.txt"
oShellLink.Save
Vous devez configurer les arguments suivants :
- Sélectionnez le type d’action : VBScript
- Indiquez le chemin du fichier exécutable : c:\CreatRacc.vbs
- Sélectionnez wscript comme exécutable VBScript.
- A l’aide du gestionnaire d’arguments VBScript, sélectionnez //B //Nologo pour une exécution silencieuse
