Home > Archive > Tcl > July 2005 > Re: dragging a file onto a tcl script...
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: dragging a file onto a tcl script...
|
|
| Volker Hetzer 2005-07-24, 8:59 pm |
| Bob Techentin wrote:
> "Volker Hetzer" <volker.hetzer@ieee.org> wrote
>
>
>
> You bet!
>
> Windows will fire up an application and pass the dropped file as argv[0]
> when the desktop icon is either an application or a shortcut to an
> application (.exe). So just starpack-ize your Tcl script, and grab the name
> of the dropped file from [lindex $argv 0].
>
> Bob
Thanks a lot!
Volker
| |
|
| Volker Hetzer wrote on 7/20/2005 3:36 AM:
> Bob Techentin wrote:
I usually wrap my tcl scripts in a bat script:
"c:\path\to\tclsh" "c:\path\to\script" %1 %2 %3 %4 %5 %6 %7 %8
There will be a flicker from the cmd window, though, but it's
quick to make. From a cmd window, run "cmd /?" and "start /?"
to see some flags that can be used, like "start /min" to make the
window minimized.
WL
[color=darkred]
> Thanks a lot!
> Volker
--
real mail: wliao at sdf loSnPesAtarM org
(remove the uppercase letters...)
| |
| Volker Hetzer 2005-07-24, 8:59 pm |
| WL wrote:
> Volker Hetzer wrote on 7/20/2005 3:36 AM:
>
>
>
> I usually wrap my tcl scripts in a bat script:
>
> "c:\path\to\tclsh" "c:\path\to\script" %1 %2 %3 %4 %5 %6 %7 %8
>
> There will be a flicker from the cmd window, though, but it's
> quick to make. From a cmd window, run "cmd /?" and "start /?"
> to see some flags that can be used, like "start /min" to make the
> window minimized.
Thanks, but I got that starpack stuff already working and in my
makefile, so I think I'll stick with that.
Lots of Greetings!
Volker
|
|
|
|
|