how to create desktop shortcuts for word in windows NT

A

AA2e72E

Try this:

sub sc()
set shell = createobject("WScript.Shell")
desktoppath = shell.specialfolders("Desktop")
set link = shell.createshortcut(desktoppath & "\WORD.lnk")
link.arguments=""
link.description = "Microsoft Word"
link.targetpath="C:\Program Files\Microsoft Office\Office\WINWORD.EXE"
link.save
set shell = nothing
set link = nothing
end sub

NOTE:
link.arguments=you can specify the name of an exixting DOC file
link.targetpath=may vary on your PC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top