By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!TCC normally uses the file's extension (.py, .pl, .tcl, etc.) to determine the processor.
If you're using a .CMD extension for something other than a CMD or TCC batch file, TCC also includes EXTPROC / SHEBANG support (see the help for details).
Hello – thanks for the reply .... I was looking at the extproc / shebang hellp but the doc lead me to believe that what ever the command is noted on the first line in the file, the specified file would run as a child process to tcc, thus would not be able to change the environment owned by the TCC parent –
I been using rexx support for years and have many *.cmd file that are rexx scripts – I do start each *.cmd file with a rexx comment – is that the TCC trigger to process the file with rexx?
Lastly, unless there is a a custom version of a command , if file containing EXTPROC in the first line, would probable fail with a syntax error ... It would make more sense if that first line was imbedded in a comment
Just to clarify, if tcc detects the “extproc” in the first line in the myfile.cmd and that first line is
extproc c:\pascal\pascal.exe
then, tcc closes myfile.cmd file and then executes
c:\pascal\pascal.exe myfile.cmd
I would think that unless this a custom version of pascal, it would it fail with a syntax error? Or does TCC some how pass a pointer to the file missing the first line?
Just to clarify, if tcc detects the “extproc” in the first line in the myfile.cmd and that first line is
extproc c:\pascal\pascal.exe
then, tcc closes myfile.cmd file and then executes
c:\pascal\pascal.exe myfile.cmd
I would think that unless this a custom version of pascal, it would it fail with a syntax error? Or does TCC some how pass a pointer to the file missing the first line?
No, it is not the case for Pascal. And, Pascal is not interpreted, so doesn't run scripts.I thought that "#" is the comment indicator in many languages, and is that not the case for pascal?