This content has been marked as final. Show 3 replies
I changed the path where I want the shortcut to be placed:
baMakeShortcut( "C:\Program Files\docs\start.exe" , "C:\Documents and Settings\Rafa\Desktop" , "Start" )
...and it works!
Obviously, not all my users will have an account named "Rafa". How can I change this so that it will work with the user's current logged Windows account?
BuddyAPI has a function to get the desktop folder (and several others)
-- "C:\Documents and Settings\Mike\Desktop"
Thanks for replying. I changed baMakeShortcut to:
baMakeShortcut( "C:\Program Files\docs\start.exe" , baSysFolder("desktop"), "Start" )
and it works! Great, thanks for your help. I was already using "baSysFolder" for the destination of the file I was saving, just didn't think to use it for location of the shortcut.
Thank you for your help!