Tcl
|
This Tcl script provides a procedure for renaming files. The procedure accepts
It is assumed the portion of the file name to be altered appears before the first period. For example, we may wish to rename all files beginning with untitled, untitled.0001.tif untitled.0002.tif etc... to scene1 scene1.0001.tif scene1.0002.tif etc... |
The input parameters are:
renamefiles
arguments
dir path to the source directory
oldname current name of the files to be renamed
newname new name for those files
ext only files with this extension will be renamed
return value
none
Example:
renamefiles G:/tiffs untitled scene1 .tif
|
© 2002- Malcolm Kesson. All rights reserved.