/build/static/layout/Breadcrumb_cap_w.png

Help Me Debug? Desktop Shortcut

Set WshShell = CreateObject("WScript.Shell")
strDesktopPath = WshShell.SpecialFolders("AllUsersDesktop")
Set objShortcutUrl = WshShell.CreateShortcut(strDesktopPath & "\World Client.lnk")
objShortcutUrl.TargetPath = "http://mail.camelliahealth.com:3000";
objShortcutUrl.IconLocation = "c:\windows\system32\shell32.dll,81"
objShortcutUrl.Save


I am getting an error at Char 66 on Line 4, Expected end of statement....statement looks ended to me....

Anyone got an idea?

0 Comments   [ + ] Show comments

Answers (3)

Posted by: Thegunner 13 years ago
Second Degree Green Belt
0
ORIGINAL: dyehardfan

Set WshShell = CreateObject("WScript.Shell")
strDesktopPath = WshShell.SpecialFolders("AllUsersDesktop")
Set objShortcutUrl = WshShell.CreateShortcut(strDesktopPath & "\World Client.lnk")
objShortcutUrl.TargetPath = "http://mail.camelliahealth.com:3000";
objShortcutUrl.IconLocation = "c:\windows\system32\shell32.dll,81"
objShortcutUrl.Save


I am getting an error at Char 66 on Line 4, Expected end of statement....statement looks ended to me....

Anyone got an idea?


You have ';' at the end.
Posted by: dyehardfan 13 years ago
Second Degree Blue Belt
0
yeah, thanks, lol. I thought about that about 15 seconds after I posted this....


I appreciate you looking at it though.
Posted by: Thegunner 13 years ago
Second Degree Green Belt
0
ORIGINAL: dyehardfan

yeah, thanks, lol. I thought about that about 15 seconds after I posted this....


I appreciate you looking at it though.


No worries, glad to help
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ