Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a desktop shortcut

Status
Not open for further replies.

DannC

Programmer
Apr 5, 2001
75
RO
If !file("c:\windows\desktop\Ecostart40.lnk")

oShell =CreateObject("Wscript.Shell")
If vartype(oShell)=="O"

oShellLink = oShell.CreateShortcut("c:\windows\desktop\Ecostart40.lnk")

If vartype(oShellLink)=="O"

With oShellLink


.TargetPath = "c:\media\et.exe"
.WorkingDirectory="d:\media\"
.windowStyle=3
.Description="this si ET"
.iconLocation="d:\media\et.exe"
.hotKey="CTRL+ALT+E"
.Save

Endwith
Endi
Endi
Endi



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top