Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[COLOR=#0000ff]# command line arguments[/color]
[COLOR=#804040][b]set[/b][/color] script_name [COLOR=#008080]$argv0[/color]
[COLOR=#804040][b]set[/b][/color] cmd_arg01 [[COLOR=#804040][b]lindex[/b][/color] [COLOR=#008080]$argv[/color] [COLOR=#ff00ff]0[/color]]
[COLOR=#804040][b]set[/b][/color] cmd_arg02 [[COLOR=#804040][b]lindex[/b][/color] [COLOR=#008080]$argv[/color] [COLOR=#ff00ff]1[/color]]
[COLOR=#804040][b]puts[/b][/color] [COLOR=#ff00ff]"script_name = '$script_name'"[/color]
[COLOR=#804040][b]puts[/b][/color] [COLOR=#ff00ff]"cmd_arg01 = '$cmd_arg01'"[/color]
[COLOR=#804040][b]puts[/b][/color] [COLOR=#ff00ff]"cmd_arg02 = '$cmd_arg02'"[/color]
c:\Work>tclsh85 cmdargs.tcl foo bar
script_name = 'cmdargs.tcl'
cmd_arg01 = 'foo'
cmd_arg02 = 'bar'
Wrong. In PHP you should also use the $argv predefined reserved variable, not the __FILE__ magic constant.need4weed said:batch uses %0, python uses argv[0], php uses __FILE__ .... ect.
Next time try the Tcl documentation too. It has the answer at tclvars.need4weed said:(i tried google)