Part of the Samples Website. 8/16/97.


«Showing how to rename files in a loop
«it loops over all the files in the folder you choose
«looking for files whose name contains an exclamation point
«it adds a dollar sign to the end of the file's name
local (folder, f)
if not file.getFolderDialog ("Choose a folder", @folder)
fileloop (f in folder, infinity)
local (name = file.fileFromPath (f))
if name contains "!"
file.rename (f, name + "$")

This page was last built on Sat, Aug 16, 1997 at 6:35:31 PM. You can download the current set of sample scripts from our FTP site. Dave