1 | initial version |
To execute a Tcl file from a batch file, you can use the command "tclsh" followed by the path of the Tcl file. For example, if the Tcl file is located in "C:\Scripts\test.tcl", the command in the batch file would be:
tclsh C:\Scripts\test.tcl
You can also use the full path to the tclsh executable if it is not included in the system path. For example, if Tcl is installed in "C:\Tcl", the command would be:
C:\Tcl\bin\tclsh.exe C:\Scripts\test.tcl