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

samples.basicStuff.changeFileNames

«This script changes the extension of all .htm files to .html.
local (folder, f)
if file.getfolderdialog ("Choose a folder to convert", @folder)
fileloop (f in folder, infinity)
local (name = file.filefrompath (f))
if string.lower (name) endswith ".htm"
if name [sizeof (name)] == 'M'
file.rename (f, name + "L")
else
file.rename (f, name + "l")


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