title: How to set a path in tcl like with cd in batch files?
body: <p>I've been using Tcl language for a few days only, but I'm used to programming in other languages too; however, I can't find any reference anywhere as to how I could set the current directory or path as it can be done in batch language with the command cd.</p>
  
  <p>I need this because I'm using Tcl to integrate several different programs. One of these has some apparent problems of recognizing the current path. If I execute it from a batch file, previously setting the path with cd and the folder where this program is, everything works fine.</p>
  
  <p>However, if instead of using a batch file I use a basic Tcl script to call this program (I use exec), it doesn't seem to find the folder or files it needs, most likely because the relative paths it uses are mapped incorrectly.</p>
  
  <p>Does anyone know an equivalent version of the batch cd for Tcl??</p>
  
  <p>Thanks!!</p>