From: Lucie Huynh (
Date: Wed Feb 06 2008 - 10:29:58 CST

Hello everyone,

I'm new in tcl/tk language.
I found a script to merge every file in a directory and I'd like to modify
it in order to merge only file that begin with "b" for example.
Here is the lines I modified:

foreach pdb [glob b*.pdb] {
  foreach segname [lsort [$pdb get segid]]{
   set segid $segname
 segment $segid {
    first NONE
    last NONE
    pdb $pdb
  coordpdb $pdb $segid

I have only 2 files beginning with "b". No problem for the first one but
there's a problem with the second file...
Here is the error message : couldn't execute "C:\Program Files\University of
Illinois\VMD\basps_moved.pdb": no such file or directory.
What does it mean? what's wrong with the script?

Thank you in advance for any help!