Troubles Using CopyFile with Shortcuts

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Dexter1
Pro Scripter
Posts: 64
Joined: Mon Jun 19, 2006 3:28 pm

Troubles Using CopyFile with Shortcuts

Post by Dexter1 » Fri Oct 27, 2006 3:37 pm

I have a folder that I want to fill with shortcuts to use as part of a database installation macro. However, when I try to use CopyFile for the shortcut, nothing happens. I don't get an error, but my destination folder doesn't have the shortcut in it.

I know my addresses are ok because I'm copying other files from the same location. Is there some reason I can't copy the shortcuts?

Also, can I get Macro Scheduler to create the shortcuts for me? That'd be better still.
Thanks,
Josh

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Fri Oct 27, 2006 3:46 pm

You should be able to use copyfile to copy shortcuts. Are you using the full name of the shortcuts. They have a .lnk extension and that must be included in the name.

Or you could use this from Marcus to create your shortcuts.

Hope this helps,
Dick

Dexter1
Pro Scripter
Posts: 64
Joined: Mon Jun 19, 2006 3:28 pm

Post by Dexter1 » Fri Oct 27, 2006 3:48 pm

Yeah, I was missing the .lnk. Thanks a heap!
Thanks,
Josh

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts