Tim Roberts wrote:
"Bob Then" <[EMAIL PROTECTED]> wrote:
how can i change all files from one extension to another within a direcory?

In Windows, the quickest way is:

os.system( "rename *.old *.new" )

I have a vague memory that this won't work on all versions of Windows... possibly it isn't supported on Win98? That may not be quite right, but I recall problems doing this in the past. (Or was it just DOS that failed?)

-Peter
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to