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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Start a Tcl script with arguments in Windows

Status
Not open for further replies.

firelex

Programmer
Jan 10, 2002
118
DE
Hallo, all!
My question is:
Is ti possible to start a Tcl - script with arguments under Windows? I've tried to edit the link that I've made on the desktop, just by tipping the arguments after the command the link has. I didn't work.
Any ideas?
 
I don't know if this is what you're after but I do something similar. I have a Tcl script that views binary data in a form that I like. I have "associated" .bin files with that script as follows:
C:\Tcl\bin\wish83.exe "f:/utility/tclscript/hxread2.tcl" %1

Clearly, "%1" is a file name for association but I think the syntax is general? Bob Rashkin
rrashkin@csc.com
 
Hi, Bong!
Have you done it in a *.bat file or in registry?
 
I did it in the file manager "file types" panel, but I have also done the same thing in .bat files. Bob Rashkin
rrashkin@csc.com
 
*.bat files are OK, but the leave a DOS-window every time they are started.
I tried "@echo=off". Result: a DOS-window comes for short moment and only then it disappears. Is there any possibility to make DOS-windows not to appear on the screen at all?
 
Have you tried to add the path of wish or tclsh before the path of the Tcl script?

If your script is at c:/src/myscript.tcl,
and wish is at c:/bin/wish.exe,
try to put:
c:/bin/wish.exe c:/src/myscript.tcl
in the desktop link.

To do that you need to right-click on the link and choose Properties.

HTH

ulis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top