shortcuts / icons / program groups on windows?

shortcuts / icons / program groups on windows?

Post by liste » Mon, 25 Jul 2005 23:46:34


Is there a TCL package for messing with shortcuts / icons / program
groups on windows?
 
 
 

shortcuts / icons / program groups on windows?

Post by Pat Thoyt » Tue, 26 Jul 2005 05:14:21

lister < XXXX@XXXXX.COM > writes:


You can manipulate shortcuts using the WScript.Shell object by using
the tcom package. Here's a demo that creates a shortcut on the
desktop. It's a translation of a MS demo from the MSDN scripting
pages.

package require tcom
set oShell [tcom::ref createobject "WScript.Shell"]
set sDesktop [[$oShell SpecialFolders] Item "Desktop"]
set oShortcut [$oShell CreateShortcut \
[file nativename \
[file join $sDesktop "Tcl Shortcut Demo.lnk"]]]
$oShortcut TargetPath [file nativename [file normalize [info script]]]
$oShortcut WindowStyle 1
$oShortcut Description "Demonstrate shortcut handling with Tcl"
$oShortcut Save


--
Pat Thoyts http://www.yqcomputer.com/
To reply, rot13 the return address or read the X-Address header.
PGP fingerprint 2C 6E 98 07 2C 59 C8 97 10 CE 11 E6 04 E0 B9 DD

 
 
 

shortcuts / icons / program groups on windows?

Post by joioso » Tue, 26 Jul 2005 18:00:17

Several options:

http://www.yqcomputer.com/
 
 
 

shortcuts / icons / program groups on windows?

Post by liste » Wed, 27 Jul 2005 03:09:01


Thanks Pat!
Not being a windows guy, how would I associate an icon for the
shortcut? Or if you prefer, where would I read about the details
of what this is doing so I can learn that (MSDN scripting pages?)?