Create a shortcut?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
TomHuffman
Newbie
Posts: 2
Joined: Fri Sep 10, 2004 5:34 pm
Location: Rockville, MD

Create a shortcut?

Post by TomHuffman » Wed Feb 02, 2005 10:01 pm

How do I create a macro that creates a shortcut at a specified location (i.e., Desktop) for a specified file?

This seems like a pretty basic task, but I find no mention of it in either the Help file for the Tips site.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Feb 03, 2005 12:49 am

Here is a link that explains how to make a shortcut using a batch file with four parameters: http://www.robvanderwoude.com/index.html

From the article:
Here's an example command line for the batch file.

link.bat c:\windows\notepad.exe c:\windows\desktop "c:\windows\start
menu\programs" "A Notepad Shortcut"
The linked article has the details for the link.bat file.

If this works for you, then you can use Macro Scheduler to call the batch file noted in the process noted above and pass the batch file variables from Macro Scheduler variables.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Tue Feb 22, 2005 8:28 am

A script that uses VBScript to create a shortcut has been added to the Scripts & Tips section:

http://www.mjtnet.com/forum/viewtopic.php?t=1697
MJT Net Support
[email protected]

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