not recognized internal or external command

  • Hi,

    I have TCL (scripting language) running on my server.  I can run it from the command line, but when I type in:

    exec master..xp_cmdshell "tcl c:\tcl_scripts\finddate.tcl"

    in an isql window, I get the error:

    'tcl' is not recognized as an internal or external command,

    operable program or batch file.

    Any ideas as to why I can run this from the command line and not the isql window?

    Thanks!

     

     

     

     

  • Presumably because in a command window, $PATH contains the path to where TCL exists.

    Try giving the full pathname to the TCL program. Example, assuming it's "C:\Program Files\TCL\TCL.EXE"

     

    exec master..xp_cmdshell "C:\Program Files\TCL\TCL.EXE c:\tcl_scripts\finddate.tcl"

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply