Version 5 of Windows Helper Utilities

Updated 2003-12-03 00:16:59

I thought it was time I tried to return something to this Wiki. I created this page for little Tcl/Tk utilities which make life under MS Windows easier.


  • SendTo utility to add the UNC for several files

Problem: You want to insert the network path (UNC) into an email message for file(s) rather than attaching the files. You can select those files in Windows Explorer and then right click and select SendTo. The full path of those files will be send on the command line to whatever application you place in the SendTo directory in your profile (depends on the version of Windows. EG: WinXP places it under "Documents and Settings\username\SendTo). I tried to create a simple Visual C++ utility to grab this command line and place it on the clipboard. I found out that Tcl/Tk makes it much easier:

 clipboard clear
 clipboard append [join $argv {
 }]
 update
 exit

Place this script somewhere, not necessarily in the the SendTo directory. In the SendTo directory, create a new shortcut to your wish executable and add to the command line the path to this simple script. Thats all you need!

LES on 2003 Dec 01: has anyone actually tried this? It doesn't work for me. The script is not even run.

JPT 2003-12-02: I tried it under WinME and it worked ok... after I re-read the instructions and put a shortcut to the script in the SendTo directory instead of the script itself as I first did.


Integrating Tcl and Emacs on Windows shows a secret way to integrate Tcl on Windows Emacs.


windows icons holds the secret of icon manipulation with Tcl