If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

1) After the line Set link = C.CreateShortcut(DesktopPath & "\test.lnk"), test for whether link Is Nothing. This will tell you if the shortcut was created, but not whether it was created with the name & target you want, as the name & target setting happens later in the code.

2) After all your code to create the shortcut runs, you could use the Dir$ function to check the existence of the .lnk file in the Desktop folder. Use code to determine the location of the Desktop folder. Since you're already using the Windows Scripting Host (set a reference to "Windows Script Host Object Model" first), this code will give you the full path to the Desktop folder: