Hi
I need to create shortcuts that is pointing on a speciel .ini file, but I can't create it with the right destination. The destination should be:
c:\notes\notes.exe "=c:\documents and settings\jek\application data\notes\notes.ini"
Instead it creates this destination that doesn't work:
"c:\notes\notes.exe" "=c:\documents and settings\jek\application data\notes\notes.ini"
The code:
Dim struser
Set WshShell = CreateObject("WScript.Shell"
Set WshNetwork = WScript.CreateObject("WScript.Network"
struser= WshNetwork.username
strDesktopPath = WshShell.SpecialFolders("Desktop"
StrStartMenu = WshShell.SpecialFolders("StartMenu"
Set objDeskShortcutLnk = WshShell.CreateShortcut(strDesktopPath & "\ Lotus Notes.lnk"
objDeskShortcutLnk.TargetPath = "c:\Notes\notes.exe"" ""=C:\Documents and Settings\" & struser & "\Application Data\Notes\notes.ini"
objDeskShortCutLnk.WorkingDirectory = "C:\Notes\"
objDeskShortCutLnk.IconLocation = "c:\Notes\notes.exe, 0"
objDeskShortcutLnk.Save
Set objStartShortcutLnk = WshShell.CreateShortcut(strStartMenu & "\Lotus Notes.lnk"
objStartShortcutLnk.TargetPath = "c:\Notes\notes.exe"" ""=C:\Documents and Settings\" & struser & "\Application Data\Notes\notes.ini"
objStartShortCutLnk.WorkingDirectory = "C:\Notes\"
objStartShortCutLnk.IconLocation = "c:\Notes\notes.exe, 0"
objStartShortcutLnk.Save
I need to create shortcuts that is pointing on a speciel .ini file, but I can't create it with the right destination. The destination should be:
c:\notes\notes.exe "=c:\documents and settings\jek\application data\notes\notes.ini"
Instead it creates this destination that doesn't work:
"c:\notes\notes.exe" "=c:\documents and settings\jek\application data\notes\notes.ini"
The code:
Dim struser
Set WshShell = CreateObject("WScript.Shell"
Set WshNetwork = WScript.CreateObject("WScript.Network"
struser= WshNetwork.username
strDesktopPath = WshShell.SpecialFolders("Desktop"
StrStartMenu = WshShell.SpecialFolders("StartMenu"
Set objDeskShortcutLnk = WshShell.CreateShortcut(strDesktopPath & "\ Lotus Notes.lnk"
objDeskShortcutLnk.TargetPath = "c:\Notes\notes.exe"" ""=C:\Documents and Settings\" & struser & "\Application Data\Notes\notes.ini"
objDeskShortCutLnk.WorkingDirectory = "C:\Notes\"
objDeskShortCutLnk.IconLocation = "c:\Notes\notes.exe, 0"
objDeskShortcutLnk.Save
Set objStartShortcutLnk = WshShell.CreateShortcut(strStartMenu & "\Lotus Notes.lnk"
objStartShortcutLnk.TargetPath = "c:\Notes\notes.exe"" ""=C:\Documents and Settings\" & struser & "\Application Data\Notes\notes.ini"
objStartShortCutLnk.WorkingDirectory = "C:\Notes\"
objStartShortCutLnk.IconLocation = "c:\Notes\notes.exe, 0"
objStartShortcutLnk.Save