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.
Create a shortcut?
Moderators: Dorian (MJT support), JRL
-
- Newbie
- Posts: 2
- Joined: Fri Sep 10, 2004 5:34 pm
- Location: Rockville, MD
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
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:
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.
From the article:
The linked article has the details for the link.bat file.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"
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!
Bob
A humble man and PROUD of it!
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
http://www.mjtnet.com/forum/viewtopic.php?t=1697
MJT Net Support
[email protected]
[email protected]